Open
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/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/react
SDK Version
9.28.1
Framework Version
18.3.0
Link to Sentry event
No response
Reproduction Example/SDK Setup
Sentry.init({
...
tracesSampler(_) {
return getCurrentSamplingRate(); // Reads global variable, updated when user data is initialized. We want to only record the paid users
},
...
})
Steps to Reproduce
- Initialised Sentry with
tracesSampler
- Added
samplingRate
as custom attribute - Observed that transactions with sampling Rate 0 are reported in Sentry
Expected Result
Transactions with sampling Rate 0 should be dropped
Actual Result
Transactions with sampling Rate 0 are getting reported to Sentry
Metadata
Metadata
Assignees
Type
Projects
Status
Waiting for: Product Owner