Class LateBoundBatchSpanProcessor

  • All Implemented Interfaces:
    io.opentelemetry.sdk.trace.SpanProcessor, Closeable, AutoCloseable
    Direct Known Subclasses:
    RemoveableLateBoundBatchSpanProcessor

    public class LateBoundBatchSpanProcessor
    extends Object
    implements io.opentelemetry.sdk.trace.SpanProcessor
    Class to facilitate a delay in when the worker thread inside BatchSpanProcessor is started, enabling Quarkus to instantiate a TracerProvider during static initialization and set a BatchSpanProcessor delegate during runtime initialization.
    • Constructor Detail

      • LateBoundBatchSpanProcessor

        public LateBoundBatchSpanProcessor​(io.opentelemetry.sdk.trace.export.BatchSpanProcessor delegate)
    • Method Detail

      • onStart

        public void onStart​(io.opentelemetry.context.Context parentContext,
                            io.opentelemetry.sdk.trace.ReadWriteSpan span)
        Specified by:
        onStart in interface io.opentelemetry.sdk.trace.SpanProcessor
      • isStartRequired

        public boolean isStartRequired()
        Specified by:
        isStartRequired in interface io.opentelemetry.sdk.trace.SpanProcessor
      • onEnd

        public void onEnd​(io.opentelemetry.sdk.trace.ReadableSpan span)
        Specified by:
        onEnd in interface io.opentelemetry.sdk.trace.SpanProcessor
      • isEndRequired

        public boolean isEndRequired()
        Specified by:
        isEndRequired in interface io.opentelemetry.sdk.trace.SpanProcessor
      • shutdown

        public io.opentelemetry.sdk.common.CompletableResultCode shutdown()
        Specified by:
        shutdown in interface io.opentelemetry.sdk.trace.SpanProcessor
      • forceFlush

        public io.opentelemetry.sdk.common.CompletableResultCode forceFlush()
        Specified by:
        forceFlush in interface io.opentelemetry.sdk.trace.SpanProcessor
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface io.opentelemetry.sdk.trace.SpanProcessor
      • isDelegateNull

        public boolean isDelegateNull()