Package io.sentry
Class SamplingContext
- java.lang.Object
-
- io.sentry.SamplingContext
-
public final class SamplingContext extends java.lang.ObjectContext used bySentryOptions.TracesSamplerCallbackto 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 CustomSamplingContextgetCustomSamplingContext()@NotNull TransactionContextgetTransactionContext()
-
-
-
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()
-
-