sentry-native
sentry-native copied to clipboard
Support `tracesSampler`
Add support for tracesSampler.
Relevant docs:
- https://develop.sentry.dev/sdk/performance/#tracessampler
- https://docs.sentry.io/platforms/native/performance
- https://docs.sentry.io/platforms/native/configuration/sampling
After some more discussion both tracesSampler and beforeSendTransaction should be low effort. Compared to on_crash they are not backend-specific and should be straightforward to implement.
Implementation detail: Let's keep in mind that resetting the tracesSampler should restore the original behaviour.