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 Summary

    Constructors
    Constructor
    Description
     
    SentrySampler(@NotNull io.sentry.IScopes scopes)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    io.opentelemetry.sdk.trace.samplers.SamplingResult
    shouldSample(@NotNull io.opentelemetry.context.Context parentContext, @NotNull String traceId, @NotNull String name, @NotNull io.opentelemetry.api.trace.SpanKind spanKind, @NotNull io.opentelemetry.api.common.Attributes attributes, @NotNull List<io.opentelemetry.sdk.trace.data.LinkData> parentLinks)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SentrySampler

      public SentrySampler(@NotNull @NotNull io.sentry.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