Title: With sampling rate 0, transactions are still recorded · Issue #16849 · getsentry/sentry-javascript · GitHub
Open Graph Title: With sampling rate 0, transactions are still recorded · Issue #16849 · getsentry/sentry-javascript
X Title: With sampling rate 0, transactions are still recorded · Issue #16849 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/16849
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"With sampling rate 0, transactions are still recorded","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/react\n\n### SDK Version\n\n9.28.1\n\n### Framework Version\n\n18.3.0\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n```typescript\nSentry.init({\n ...\n tracesSampler(_) {\n return getCurrentSamplingRate(); // Reads global variable, updated when user data is initialized. We want to only record the paid users\n },\n ...\n})\n``` \n\n### Steps to Reproduce\n\n1. Initialised Sentry with `tracesSampler`\n2. Added `samplingRate` as custom attribute\n3. Observed that transactions with sampling Rate 0 are reported in Sentry\n\n### Expected Result\n\nTransactions with sampling Rate 0 should be dropped\n\n### Actual Result\n\nTransactions with sampling Rate 0 are getting reported to Sentry","author":{"url":"https://github.com/PankajSati-apl","@type":"Person","name":"PankajSati-apl"},"datePublished":"2025-07-08T18:50:10Z","url":"https://github.com/getsentry/sentry-javascript/issues/16849"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d0daafc9-ecc8-af9f-6f39-cdd562e3b22d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE9E:1CCF99:7BC1B5:A86CCA:6B05EAE5 |
| html-safe-nonce | 05c387ad85fecd4638a0671e16bd582813c6d64f0fa445bd98ed804e62f3ab15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTlFOjFDQ0Y5OTo3QkMxQjU6QTg2Q0NBOjZCMDVFQUU1IiwidmlzaXRvcl9pZCI6IjUzNzkzNDgyNTQwMDM5NDgyNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ce539aa7ca5ca5abf9124a120fd4ddf49d8a3c2d0bf38d028bc2707f3146b1d4 |
| hovercard-subject-tag | issue:3213475878 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/16849/issue_layout |
| twitter:image | https://opengraph.githubassets.com/93a7bb045138d9cce3f958834c69d5396caba12e184d75c28ac270fdc479e6da/getsentry/sentry-javascript/issues/16849 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/93a7bb045138d9cce3f958834c69d5396caba12e184d75c28ac270fdc479e6da/getsentry/sentry-javascript/issues/16849 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PankajSati-apl |
| hostname | github.com |
| expected-hostname | github.com |
| None | c214754a6652274794ed4e054a7b71be999d69843f103ba54893001d45010ece |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d164a4e71eb333b2b17fd5b17e18efb7855505c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width