public interface Tracer
| Modifier and Type | Method and Description |
|---|---|
boolean |
addTraceInterceptor(TraceInterceptor traceInterceptor)
Add a new interceptor to the tracer.
|
String |
getSpanId()
Get the span id of the active span of the active trace.
|
String |
getTraceId()
Get the trace id of the active trace.
|
boolean |
isAsyncPropagationEnabled()
Deprecated.
Unstable API. Might be removed at any time.
|
TraceScope |
muteTracing() |
void |
setAsyncPropagationEnabled(boolean asyncPropagationEnabled)
Deprecated.
Unstable API. Might be removed at any time.
|
String getTraceId()
String getSpanId()
@Deprecated boolean isAsyncPropagationEnabled()
true if asynchronous propagation is enabled, false otherwise.@Deprecated void setAsyncPropagationEnabled(boolean asyncPropagationEnabled)
Asynchronous propagation is enabled by default from ConfigDefaults.DEFAULT_ASYNC_PROPAGATING.
asyncPropagationEnabled - @true to enable asynchronous propagation, false
to disable it.boolean addTraceInterceptor(TraceInterceptor traceInterceptor)
traceInterceptor - TraceScope muteTracing()