Class OpenTelemetryAgentSpanContext
Object
OpenTelemetryAgentSpanContext
- All Implemented Interfaces:
SpanContext
This is exactly the same as the
OpenTelemetrySpanContextSupplier.
However, the io.opentelemetry.api package is relocated to
io.opentelemetry.javaagent.shaded.io.opentelemetry.api in the OpenTelemetry agent.-
Field Summary
Fields inherited from interface SpanContext
EXEMPLAR_ATTRIBUTE_NAME, EXEMPLAR_ATTRIBUTE_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbooleanvoid
-
Constructor Details
-
OpenTelemetryAgentSpanContext
public OpenTelemetryAgentSpanContext()
-
-
Method Details
-
isAvailable
-
getCurrentTraceId
- Specified by:
getCurrentTraceIdin interfaceSpanContext
-
getCurrentSpanId
- Specified by:
getCurrentSpanIdin interfaceSpanContext
-
isCurrentSpanSampled
- Specified by:
isCurrentSpanSampledin interfaceSpanContext
-
markCurrentSpanAsExemplar
- Specified by:
markCurrentSpanAsExemplarin interfaceSpanContext
-