Class MultiSpanProcessor

    • Method Detail

      • onStart

        public void onStart​(io.opentelemetry.context.Context parentContext,
                            ReadWriteSpan readableSpan)
        Deprecated.
        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.
        readableSpan - the ReadableSpan that just started.
      • onEnd

        public void onEnd​(ReadableSpan readableSpan)
        Deprecated.
        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:
        readableSpan - the ReadableSpan that just ended.
      • shutdown

        public io.opentelemetry.sdk.common.CompletableResultCode shutdown()
        Deprecated.
        Description copied from interface: SpanProcessor
        Processes all span events that have not yet been processed and closes used resources.
        Specified by:
        shutdown in interface SpanProcessor
        Returns:
        a CompletableResultCode which completes when shutdown is finished.
      • forceFlush

        public io.opentelemetry.sdk.common.CompletableResultCode forceFlush()
        Deprecated.
        Description copied from interface: SpanProcessor
        Processes all span events that have not yet been processed.
        Specified by:
        forceFlush in interface SpanProcessor
        Returns:
        a CompletableResultCode which completes when currently queued spans are finished processing.