Package io.sentry

Interface SentryOptions.ProfilesSamplerCallback

Enclosing class:
SentryOptions

public static interface SentryOptions.ProfilesSamplerCallback
The profiles sampler callback.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Double
    sample(@NotNull SamplingContext samplingContext)
    Calculates the sampling value used to determine if a profile is going to be sent to Sentry backend.
  • Method Details

    • sample

      @Nullable @Nullable Double sample(@NotNull @NotNull SamplingContext samplingContext)
      Calculates the sampling value used to determine if a profile is going to be sent to Sentry backend.
      Parameters:
      samplingContext - the sampling context
      Returns:
      sampling value or null if decision has not been taken