public final class SamplingContext
extends java.lang.Object
SentryOptions.TracesSamplerCallback
to determine if transaction
is going to be sampled.Constructor and Description |
---|
SamplingContext(@NotNull TransactionContext transactionContext,
@Nullable CustomSamplingContext customSamplingContext) |
Modifier and Type | Method and Description |
---|---|
@Nullable CustomSamplingContext |
getCustomSamplingContext() |
@NotNull TransactionContext |
getTransactionContext() |
public SamplingContext(@NotNull @NotNull TransactionContext transactionContext, @Nullable @Nullable CustomSamplingContext customSamplingContext)
@Nullable public @Nullable CustomSamplingContext getCustomSamplingContext()
@NotNull public @NotNull TransactionContext getTransactionContext()