Class OpenTelemetrySpanContextSupplier
- java.lang.Object
-
- io.prometheus.client.exemplars.tracer.otel.OpenTelemetrySpanContextSupplier
-
- All Implemented Interfaces:
io.prometheus.client.exemplars.tracer.common.SpanContextSupplier
public class OpenTelemetrySpanContextSupplier extends Object implements io.prometheus.client.exemplars.tracer.common.SpanContextSupplier
-
-
Constructor Summary
Constructors Constructor Description OpenTelemetrySpanContextSupplier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSpanId()StringgetTraceId()static booleanisAvailable()booleanisSampled()
-
-
-
Constructor Detail
-
OpenTelemetrySpanContextSupplier
public OpenTelemetrySpanContextSupplier()
-
-
Method Detail
-
isAvailable
public static boolean isAvailable()
-
getTraceId
public String getTraceId()
- Specified by:
getTraceIdin interfaceio.prometheus.client.exemplars.tracer.common.SpanContextSupplier
-
getSpanId
public String getSpanId()
- Specified by:
getSpanIdin interfaceio.prometheus.client.exemplars.tracer.common.SpanContextSupplier
-
isSampled
public boolean isSampled()
- Specified by:
isSampledin interfaceio.prometheus.client.exemplars.tracer.common.SpanContextSupplier
-
-