Class OpenTelemetryAgentSpanContext
java.lang.Object
io.prometheus.metrics.tracer.agent.OpenTelemetryAgentSpanContext
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 Details
-
EXEMPLAR_ATTRIBUTE_NAME
- See Also:
-
EXEMPLAR_ATTRIBUTE_VALUE
- See Also:
-
-
Constructor Details
-
OpenTelemetryAgentSpanContext
public OpenTelemetryAgentSpanContext()
-
-
Method Details
-
isAvailable
public static boolean isAvailable() -
getCurrentTraceId
-
getCurrentSpanId
-
isCurrentSpanSampled
public boolean isCurrentSpanSampled() -
markCurrentSpanAsExemplar
public void markCurrentSpanAsExemplar()
-