Class OpenTelemetryAgentSpanContext
java.lang.Object
io.prometheus.metrics.tracer.agent.OpenTelemetryAgentSpanContext
- All Implemented Interfaces:
io.prometheus.metrics.tracer.common.SpanContext
public class OpenTelemetryAgentSpanContext
extends Object
implements io.prometheus.metrics.tracer.common.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 io.prometheus.metrics.tracer.common.SpanContext
EXEMPLAR_ATTRIBUTE_NAME, EXEMPLAR_ATTRIBUTE_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbooleanvoid
-
Constructor Details
-
OpenTelemetryAgentSpanContext
public OpenTelemetryAgentSpanContext()
-
-
Method Details
-
isAvailable
public static boolean isAvailable() -
getCurrentTraceId
- Specified by:
getCurrentTraceIdin interfaceio.prometheus.metrics.tracer.common.SpanContext
-
getCurrentSpanId
- Specified by:
getCurrentSpanIdin interfaceio.prometheus.metrics.tracer.common.SpanContext
-
isCurrentSpanSampled
public boolean isCurrentSpanSampled()- Specified by:
isCurrentSpanSampledin interfaceio.prometheus.metrics.tracer.common.SpanContext
-
markCurrentSpanAsExemplar
public void markCurrentSpanAsExemplar()- Specified by:
markCurrentSpanAsExemplarin interfaceio.prometheus.metrics.tracer.common.SpanContext
-