-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDDTracer.DDSpanBuilderSpans are built using this builder
-
Field Summary
Fields Modifier and Type Field Description public final static BigIntegerTRACE_ID_MAXpublic final static BigIntegerTRACE_ID_MINprivate final intpartialFlushMinSpansprivate final Map<String, List<AbstractDecorator>>spanContextDecorators
-
Method Summary
Modifier and Type Method Description intgetPartialFlushMinSpans()List<AbstractDecorator>getSpanContextDecorators(String tag)Returns the list of span context decorators voidfinalize()voidaddDecorator(AbstractDecorator decorator)Add a new decorator in the list (AbstractDecorator) voidaddScopeContext(ScopeContext context)voidregisterClassLoader(ClassLoader classLoader)If an application is using a non-system classloader, that classloader should be registeredhere. ScopeManagerscopeManager()SpanactiveSpan()ScopeactivateSpan(Span span)Tracer.SpanBuilderbuildSpan(String operationName)<T> voidinject(SpanContext spanContext, Format<T> format, T carrier)<T> SpanContextextract(Format<T> format, T carrier)StringgetTraceId()Get the trace id of the active trace. StringgetSpanId()Get the span id of the active span of the active trace. booleanaddTraceInterceptor(TraceInterceptor interceptor)Add a new interceptor to the tracer. voidaddScopeListener(ScopeListener listener)Attach a scope listener to the global scope manager voidclose()StringtoString()-
Methods inherited from class io.opentracing.Tracer
activateSpan, activeSpan, buildSpan, close, extract, inject, scopeManager -
Methods inherited from class com.datadog.trace.api.Tracer
addScopeListener, addTraceInterceptor -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getPartialFlushMinSpans
int getPartialFlushMinSpans()
-
getSpanContextDecorators
List<AbstractDecorator> getSpanContextDecorators(String tag)
Returns the list of span context decorators
-
finalize
void finalize()
-
addDecorator
void addDecorator(AbstractDecorator decorator)
Add a new decorator in the list (AbstractDecorator)
- Parameters:
decorator- The decorator in the list
-
addScopeContext
@Deprecated() void addScopeContext(ScopeContext context)
-
registerClassLoader
void registerClassLoader(ClassLoader classLoader)
If an application is using a non-system classloader, that classloader should be registeredhere. Due to the way Spring Boot structures its' executable jar, this might log some warnings.
- Parameters:
classLoader- to register.
-
scopeManager
ScopeManager scopeManager()
-
activeSpan
Span activeSpan()
-
activateSpan
Scope activateSpan(Span span)
-
inject
<T> void inject(SpanContext spanContext, Format<T> format, T carrier)
-
extract
<T> SpanContext extract(Format<T> format, T carrier)
-
getTraceId
String getTraceId()
Get the trace id of the active trace. Returns 0 if there is no active trace.
-
getSpanId
String getSpanId()
Get the span id of the active span of the active trace. Returns 0 if there is no active trace.
-
addTraceInterceptor
boolean addTraceInterceptor(TraceInterceptor interceptor)
Add a new interceptor to the tracer. Interceptors with duplicate priority to existing ones areignored.
-
addScopeListener
void addScopeListener(ScopeListener listener)
Attach a scope listener to the global scope manager
- Parameters:
listener- listener to attach
-
close
void close()
-
-
-
-