Class NoopSpanProcessor

  • All Implemented Interfaces:
    SpanProcessor, java.io.Closeable, java.lang.AutoCloseable

    final class NoopSpanProcessor
    extends java.lang.Object
    implements SpanProcessor
    • Constructor Detail

      • NoopSpanProcessor

        private NoopSpanProcessor()
    • Method Detail

      • onStart

        public void onStart​(Context parentContext,
                            ReadWriteSpan span)
        Description copied from interface: SpanProcessor
        Called when a Span is started, if the Span.isRecording() returns true.

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

        Specified by:
        onStart in interface SpanProcessor
        Parameters:
        parentContext - the parent Context of the span that just started.
        span - the Span that just started.
      • onEnd

        public void onEnd​(ReadableSpan span)
        Description copied from interface: SpanProcessor
        Called when a Span is ended, if the Span.isRecording() returns true.

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

        Specified by:
        onEnd in interface SpanProcessor
        Parameters:
        span - the Span that just ended.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object