Package io.sentry
Interface SentryOptions.TracesSamplerCallback
- Enclosing class:
- SentryOptions
public static interface SentryOptions.TracesSamplerCallback
The traces sampler callback.
-
Method Summary
Modifier and TypeMethodDescription@Nullable Doublesample(@NotNull SamplingContext samplingContext) Calculates the sampling value used to determine if transaction is going to be sent to Sentry backend.
-
Method Details
-
sample
Calculates the sampling value used to determine if transaction is going to be sent to Sentry backend.- Parameters:
samplingContext- the sampling context- Returns:
- sampling value or
nullif decision has not been taken
-