Package io.sentry.opentelemetry
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
-
Method Summary
Modifier and TypeMethodDescriptionio.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)
-
Constructor Details
-
SentrySampler
-
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 interfaceio.opentelemetry.sdk.trace.samplers.Sampler
-
getDescription
- Specified by:
getDescription
in interfaceio.opentelemetry.sdk.trace.samplers.Sampler
-