sentry-native icon indicating copy to clipboard operation
sentry-native copied to clipboard

Support `tracesSampler`

Open kahest opened this issue 2 years ago • 1 comments

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

kahest avatar Jul 18 '23 09:07 kahest

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.

markushi avatar Jul 25 '23 09:07 markushi