Interface ExtendedSpanProcessor

All Superinterfaces:
AutoCloseable, Closeable, SpanProcessor
All Known Implementing Classes:
MultiSpanProcessor

public interface ExtendedSpanProcessor extends SpanProcessor
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 Details

    • onEnding

      void onEnding(ReadWriteSpan span)
      Called when a Span is ended, but before SpanProcessor.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 if Span.isRecording() returns true.

      This method is called synchronously on the execution thread, should not throw or block the execution thread.

      Parameters:
      span - the Span that is just about to be ended.
    • isOnEndingRequired

      boolean isOnEndingRequired()
      Returns true if this SpanProcessor requires onEnding events.
      Returns:
      true if this SpanProcessor requires onEnding events.