Class MultiplayerTraceIdRatioBasedSampler

java.lang.Object
app.multiplayer.opentelemetry.trace.samplers.MultiplayerTraceIdRatioBasedSampler
All Implemented Interfaces:
io.opentelemetry.sdk.trace.samplers.Sampler

public class MultiplayerTraceIdRatioBasedSampler extends Object implements io.opentelemetry.sdk.trace.samplers.Sampler
  • Method Details

    • create

      public static MultiplayerTraceIdRatioBasedSampler create(double ratio)
    • shouldSample

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

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object