Class DropTargetsSampler

  • All Implemented Interfaces:
    io.opentelemetry.sdk.trace.samplers.Sampler

    public class DropTargetsSampler
    extends Object
    implements io.opentelemetry.sdk.trace.samplers.Sampler
    • Constructor Detail

      • DropTargetsSampler

        public DropTargetsSampler​(io.opentelemetry.sdk.trace.samplers.Sampler sampler,
                                  List<String> dropTargets)
    • Method Detail

      • shouldSample

        public io.opentelemetry.sdk.trace.samplers.SamplingResult shouldSample​(io.opentelemetry.context.Context parentContext,
                                                                               String traceId,
                                                                               String name,
                                                                               io.opentelemetry.api.trace.SpanKind spanKind,
                                                                               io.opentelemetry.api.common.Attributes attributes,
                                                                               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