Interface ExtendedSpanProcessor
- All Superinterfaces:
AutoCloseable, Closeable, SpanProcessor
- All Known Implementing Classes:
MultiSpanProcessor
Extended
SpanProcessor 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
Modifier and TypeMethodDescriptionbooleanReturnstrueif thisSpanProcessorrequires onEnding events.voidonEnding(ReadWriteSpan span) Called when aSpanis ended, but beforeSpanProcessor.onEnd(ReadableSpan)is invoked with an immutable variant of this span.Methods inherited from interface SpanProcessor
close, forceFlush, isEndRequired, isStartRequired, onEnd, onStart, shutdown
-
Method Details
-
onEnding
Called when aSpanis 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- theSpanthat is just about to be ended.
-
isOnEndingRequired
boolean isOnEndingRequired()Returnstrueif thisSpanProcessorrequires onEnding events.- Returns:
trueif thisSpanProcessorrequires onEnding events.
-