Package io.sentry
Class SamplingContext
- java.lang.Object
-
- io.sentry.SamplingContext
-
public final class SamplingContext extends java.lang.Object
Context used bySentryOptions.TracesSamplerCallback
to determine if transaction is going to be sampled.
-
-
Constructor Summary
Constructors Constructor Description SamplingContext(@NotNull TransactionContext transactionContext, @Nullable CustomSamplingContext customSamplingContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable CustomSamplingContext
getCustomSamplingContext()
@NotNull TransactionContext
getTransactionContext()
-
-
-
Constructor Detail
-
SamplingContext
public SamplingContext(@NotNull @NotNull TransactionContext transactionContext, @Nullable @Nullable CustomSamplingContext customSamplingContext)
-
-
Method Detail
-
getCustomSamplingContext
@Nullable public @Nullable CustomSamplingContext getCustomSamplingContext()
-
getTransactionContext
@NotNull public @NotNull TransactionContext getTransactionContext()
-
-