Class OpenTelemetrySpanContext

java.lang.Object
io.prometheus.metrics.tracer.otel.OpenTelemetrySpanContext
All Implemented Interfaces:
io.prometheus.metrics.tracer.common.SpanContext

public class OpenTelemetrySpanContext extends Object implements io.prometheus.metrics.tracer.common.SpanContext
  • Constructor Details

    • OpenTelemetrySpanContext

      public OpenTelemetrySpanContext()
  • Method Details

    • isAvailable

      public static boolean isAvailable()
    • getCurrentTraceId

      @Nullable public String getCurrentTraceId()
      Specified by:
      getCurrentTraceId in interface io.prometheus.metrics.tracer.common.SpanContext
    • getCurrentSpanId

      @Nullable public String getCurrentSpanId()
      Specified by:
      getCurrentSpanId in interface io.prometheus.metrics.tracer.common.SpanContext
    • isCurrentSpanSampled

      public boolean isCurrentSpanSampled()
      Specified by:
      isCurrentSpanSampled in interface io.prometheus.metrics.tracer.common.SpanContext
    • markCurrentSpanAsExemplar

      public void markCurrentSpanAsExemplar()
      Specified by:
      markCurrentSpanAsExemplar in interface io.prometheus.metrics.tracer.common.SpanContext