-
public interface TracerA class with Datadog tracer features.
-
-
Method Summary
Modifier and Type Method Description abstract StringgetTraceId()Get the trace id of the active trace. abstract StringgetSpanId()Get the span id of the active span of the active trace. abstract booleanaddTraceInterceptor(TraceInterceptor traceInterceptor)Add a new interceptor to the tracer. abstract voidaddScopeListener(ScopeListener listener)Attach a scope listener to the global scope manager -
-
Method Detail
-
getTraceId
abstract String getTraceId()
Get the trace id of the active trace. Returns 0 if there is no active trace.
-
getSpanId
abstract String getSpanId()
Get the span id of the active span of the active trace. Returns 0 if there is no active trace.
-
addTraceInterceptor
abstract boolean addTraceInterceptor(TraceInterceptor traceInterceptor)
Add a new interceptor to the tracer. Interceptors with duplicate priority to existing ones areignored.
-
addScopeListener
abstract void addScopeListener(ScopeListener listener)
Attach a scope listener to the global scope manager
- Parameters:
listener- listener to attach
-
-
-
-