Interface ExtendedSpanProcessor
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,SpanProcessor
- All Known Implementing Classes:
MultiSpanProcessor
public interface ExtendedSpanProcessor extends SpanProcessor
ExtendedSpanProcessor
with experimental APIs.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isOnEndingRequired()
Returnstrue
if thisSpanProcessor
requires onEnding events.void
onEnding(ReadWriteSpan span)
Called when aSpan
is ended, but beforeSpanProcessor.onEnd(ReadableSpan)
is invoked with an immutable variant of this span.-
Methods inherited from interface io.opentelemetry.sdk.trace.SpanProcessor
close, forceFlush, isEndRequired, isStartRequired, onEnd, onStart, shutdown
-
-
-
-
Method Detail
-
onEnding
void onEnding(ReadWriteSpan span)
Called when aSpan
is ended, but beforeSpanProcessor.onEnd(ReadableSpan)
is invoked with an immutable variant of this span. This means that the span will still be mutable. Note that the span will only be modifiable synchronously from this callback, concurrent modifications from other threads will be prevented. Only called ifSpan.isRecording()
returns true.This method is called synchronously on the execution thread, should not throw or block the execution thread.
- Parameters:
span
- theSpan
that is just about to be ended.
-
isOnEndingRequired
boolean isOnEndingRequired()
Returnstrue
if thisSpanProcessor
requires onEnding events.- Returns:
true
if thisSpanProcessor
requires onEnding events.
-
-