Interface SdkTracerManagement

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      default void close()
      Deprecated.
      Attempts to stop all the activity for this Tracer.
      io.opentelemetry.sdk.common.CompletableResultCode forceFlush()
      Deprecated.
      Requests the active span processor to process all span events that have not yet been processed and returns a CompletableResultCode which is completed when the flush is finished.
      TraceConfig getActiveTraceConfig()
      Deprecated.
      Returns the active TraceConfig.
      io.opentelemetry.sdk.common.CompletableResultCode shutdown()
      Deprecated.
      Attempts to stop all the activity for this Tracer.
    • Method Detail

      • getActiveTraceConfig

        TraceConfig getActiveTraceConfig()
        Deprecated.
        Returns the active TraceConfig.
        Returns:
        the active TraceConfig.
      • shutdown

        io.opentelemetry.sdk.common.CompletableResultCode shutdown()
        Deprecated.
        Attempts to stop all the activity for this Tracer. Calls SpanProcessor.shutdown() for all registered SpanProcessors.

        This operation may block until all the Spans are processed. Must be called before turning off the main application to ensure all data are processed and exported.

        After this is called, newly created Spans will be no-ops.

        After this is called, further attempts at re-using or reconfiguring this instance will result in undefined behavior. It should be considered a terminal operation for the SDK implementation.

        Returns:
        a CompletableResultCode which is completed when all the span processors have been shut down.
      • forceFlush

        io.opentelemetry.sdk.common.CompletableResultCode forceFlush()
        Deprecated.
        Requests the active span processor to process all span events that have not yet been processed and returns a CompletableResultCode which is completed when the flush is finished.
        See Also:
        SpanProcessor.forceFlush()
      • close

        default void close()
        Deprecated.
        Attempts to stop all the activity for this Tracer. Calls SpanProcessor.shutdown() for all registered SpanProcessors.

        This operation may block until all the Spans are processed. Must be called before turning off the main application to ensure all data are processed and exported.

        After this is called, newly created Spans will be no-ops.

        After this is called, further attempts at re-using or reconfiguring this instance will result in undefined behavior. It should be considered a terminal operation for the SDK implementation.

        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable