Package io.sentry
Class SamplingContext
java.lang.Object
io.sentry.SamplingContext
Context used by
SentryOptions.TracesSamplerCallback
to determine if transaction
is going to be sampled.-
Constructor Summary
ConstructorsConstructorDescriptionSamplingContext
(@NotNull TransactionContext transactionContext, @Nullable CustomSamplingContext customSamplingContext) Deprecated.SamplingContext
(@NotNull TransactionContext transactionContext, @Nullable CustomSamplingContext customSamplingContext, @NotNull Double sampleRand) -
Method Summary
Modifier and TypeMethodDescription@Nullable CustomSamplingContext
@NotNull Double
@NotNull TransactionContext
-
Constructor Details
-
SamplingContext
@Deprecated public SamplingContext(@NotNull @NotNull TransactionContext transactionContext, @Nullable @Nullable CustomSamplingContext customSamplingContext) Deprecated. -
SamplingContext
@Internal public SamplingContext(@NotNull @NotNull TransactionContext transactionContext, @Nullable @Nullable CustomSamplingContext customSamplingContext, @NotNull @NotNull Double sampleRand)
-
-
Method Details
-
getCustomSamplingContext
-
getTransactionContext
-
getSampleRand
-