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 Summary
Modifier and TypeMethodDescriptioncreate(double ratio) booleaninthashCode()io.opentelemetry.sdk.trace.samplers.SamplingResultshouldSample(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) toString()
-
Method Details
-
create
-
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:
shouldSamplein interfaceio.opentelemetry.sdk.trace.samplers.Sampler
-
getDescription
- Specified by:
getDescriptionin interfaceio.opentelemetry.sdk.trace.samplers.Sampler
-
equals
-
hashCode
public int hashCode() -
toString
-