public interface TracerSdkManagement
| Modifier and Type | Method and Description |
|---|---|
void |
addSpanProcessor(SpanProcessor spanProcessor)
Adds a new
SpanProcessor to this Tracer. |
io.opentelemetry.sdk.common.CompletableResultCode |
forceFlush()
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()
Returns the active
TraceConfig. |
void |
shutdown()
Attempts to stop all the activity for this
Tracer. |
void |
updateActiveTraceConfig(TraceConfig traceConfig)
Updates the active
TraceConfig. |
TraceConfig getActiveTraceConfig()
TraceConfig.TraceConfig.void updateActiveTraceConfig(TraceConfig traceConfig)
TraceConfig.
Note: To update the TraceConfig associated with this instance you should use the
TraceConfig.toBuilder() method on the TraceConfig returned from getActiveTraceConfig(), make the changes desired to the TraceConfig.Builder instance,
then use this method with the resulting TraceConfig instance.
traceConfig - the new active TraceConfig.TraceConfigvoid addSpanProcessor(SpanProcessor spanProcessor)
SpanProcessor to this Tracer.
Any registered processor cause overhead, consider to use an async/batch processor especially
for span exporting, and export to multiple backends using the MultiSpanExporter.
spanProcessor - the new SpanProcessor to be added.void shutdown()
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 all the newly created Spans will be no-op.
io.opentelemetry.sdk.common.CompletableResultCode forceFlush()
CompletableResultCode which is completed when the flush is finished.SpanProcessor.forceFlush()