-
- All Implemented Interfaces:
-
com.datadog.trace.api.EndpointCheckpointer
public interface AgentTracer.TracerAPI implements EndpointCheckpointer
-
-
Method Summary
Modifier and Type Method Description abstract AgentSpanstartSpan(String instrumentationName, CharSequence spanName)Create and start a new span. abstract AgentSpanstartSpan(String instrumentationName, CharSequence spanName, long startTimeMicros)Create and start a new span with a given start time. abstract AgentSpanstartSpan(String instrumentationName, CharSequence spanName, AgentSpan.Context parent)Create and start a new span with an explicit parent. abstract AgentSpanstartSpan(String instrumentationName, CharSequence spanName, AgentSpan.Context parent, long startTimeMicros)Create and start a new span with an explicit parent and a given start time. abstract AgentScopeactivateSpan(AgentSpan span, ScopeSource source)abstract AgentScopeactivateSpan(AgentSpan span, ScopeSource source, boolean isAsyncPropagating)abstract AgentSpanactiveSpan()abstract AgentPropagationpropagate()AgentTracer.SpanBuilderbuildSpan(CharSequence spanName)Deprecated. abstract AgentTracer.SpanBuilderbuildSpan(String instrumentationName, CharSequence spanName)abstract voidclose()abstract voidaddScopeListener(ScopeListener listener)Attach a scope listener to the global scope manager abstract StringgetTraceId(AgentSpan span)abstract StringgetSpanId(AgentSpan span)abstract TraceConfigcaptureTraceConfig()-
-
Method Detail
-
startSpan
abstract AgentSpan startSpan(String instrumentationName, CharSequence spanName)
Create and start a new span.
- Parameters:
instrumentationName- The instrumentation creating the span.spanName- The span operation name.
-
startSpan
abstract AgentSpan startSpan(String instrumentationName, CharSequence spanName, long startTimeMicros)
Create and start a new span with a given start time.
- Parameters:
instrumentationName- The instrumentation creating the span.spanName- The span operation name.startTimeMicros- The span start time, in microseconds.
-
startSpan
abstract AgentSpan startSpan(String instrumentationName, CharSequence spanName, AgentSpan.Context parent)
Create and start a new span with an explicit parent.
- Parameters:
instrumentationName- The instrumentation creating the span.spanName- The span operation name.parent- The parent span context.
-
startSpan
abstract AgentSpan startSpan(String instrumentationName, CharSequence spanName, AgentSpan.Context parent, long startTimeMicros)
Create and start a new span with an explicit parent and a given start time.
- Parameters:
instrumentationName- The instrumentation creating the span.spanName- The span operation name.parent- The parent span context.startTimeMicros- The span start time, in microseconds.
-
activateSpan
abstract AgentScope activateSpan(AgentSpan span, ScopeSource source)
-
activateSpan
abstract AgentScope activateSpan(AgentSpan span, ScopeSource source, boolean isAsyncPropagating)
-
activeSpan
@Nullable() abstract AgentSpan activeSpan()
-
propagate
abstract AgentPropagation propagate()
-
buildSpan
@Deprecated() AgentTracer.SpanBuilder buildSpan(CharSequence spanName)
Deprecated. Use buildSpan instead.
-
buildSpan
abstract AgentTracer.SpanBuilder buildSpan(String instrumentationName, CharSequence spanName)
-
close
abstract void close()
-
addScopeListener
abstract void addScopeListener(ScopeListener listener)
Attach a scope listener to the global scope manager
- Parameters:
listener- listener to attach
-
getTraceId
abstract String getTraceId(AgentSpan span)
-
captureTraceConfig
abstract TraceConfig captureTraceConfig()
-
-
-
-