Interface SdkTracerManagement
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
SdkTracerProvider
@Deprecated public interface SdkTracerManagement extends Closeable
Deprecated.UseSdkTracerProviderdirectly."Management" interface for the Tracing SDK. This interface exposes methods for configuring the Tracing SDK, as well as several lifecycle methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidclose()Deprecated.Attempts to stop all the activity for thisTracer.io.opentelemetry.sdk.common.CompletableResultCodeforceFlush()Deprecated.Requests the active span processor to process all span events that have not yet been processed and returns aCompletableResultCodewhich is completed when the flush is finished.TraceConfiggetActiveTraceConfig()Deprecated.Returns the activeTraceConfig.io.opentelemetry.sdk.common.CompletableResultCodeshutdown()Deprecated.Attempts to stop all the activity for thisTracer.
-
-
-
Method Detail
-
getActiveTraceConfig
TraceConfig getActiveTraceConfig()
Deprecated.Returns the activeTraceConfig.- Returns:
- the active
TraceConfig.
-
shutdown
io.opentelemetry.sdk.common.CompletableResultCode shutdown()
Deprecated.Attempts to stop all the activity for thisTracer. CallsSpanProcessor.shutdown()for all registeredSpanProcessors.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
CompletableResultCodewhich 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 aCompletableResultCodewhich is completed when the flush is finished.- See Also:
SpanProcessor.forceFlush()
-
close
default void close()
Deprecated.Attempts to stop all the activity for thisTracer. CallsSpanProcessor.shutdown()for all registeredSpanProcessors.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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-