Package io.sentry.opentelemetry
Class SentrySpanProcessor
java.lang.Object
io.sentry.opentelemetry.SentrySpanProcessor
- All Implemented Interfaces:
io.opentelemetry.sdk.trace.SpanProcessor
,Closeable
,AutoCloseable
public final class SentrySpanProcessor
extends Object
implements io.opentelemetry.sdk.trace.SpanProcessor
-
Constructor Details
-
SentrySpanProcessor
public SentrySpanProcessor()
-
-
Method Details
-
onStart
public void onStart(@NotNull @NotNull io.opentelemetry.context.Context parentContext, @NotNull @NotNull io.opentelemetry.sdk.trace.ReadWriteSpan otelSpan) - Specified by:
onStart
in interfaceio.opentelemetry.sdk.trace.SpanProcessor
-
isStartRequired
public boolean isStartRequired()- Specified by:
isStartRequired
in interfaceio.opentelemetry.sdk.trace.SpanProcessor
-
onEnd
public void onEnd(@NotNull @NotNull io.opentelemetry.sdk.trace.ReadableSpan otelSpan) - Specified by:
onEnd
in interfaceio.opentelemetry.sdk.trace.SpanProcessor
-
isEndRequired
public boolean isEndRequired()- Specified by:
isEndRequired
in interfaceio.opentelemetry.sdk.trace.SpanProcessor
-