Class SentrySampler

java.lang.Object
io.sentry.opentelemetry.SentrySampler
All Implemented Interfaces:
io.opentelemetry.sdk.trace.samplers.Sampler

public final class SentrySampler extends Object implements io.opentelemetry.sdk.trace.samplers.Sampler
  • Constructor Details

    • SentrySampler

      public SentrySampler(@NotNull @NotNull IScopes scopes)
    • SentrySampler

      public SentrySampler()
  • Method Details

    • shouldSample

      public io.opentelemetry.sdk.trace.samplers.SamplingResult shouldSample(@NotNull @NotNull io.opentelemetry.context.Context parentContext, @NotNull @NotNull String traceId, @NotNull @NotNull String name, @NotNull @NotNull io.opentelemetry.api.trace.SpanKind spanKind, @NotNull @NotNull io.opentelemetry.api.common.Attributes attributes, @NotNull @NotNull List<io.opentelemetry.sdk.trace.data.LinkData> parentLinks)
      Specified by:
      shouldSample in interface io.opentelemetry.sdk.trace.samplers.Sampler
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface io.opentelemetry.sdk.trace.samplers.Sampler