Class OpenTelemetryAgentSpanContext

java.lang.Object
io.prometheus.metrics.tracer.agent.OpenTelemetryAgentSpanContext

public class OpenTelemetryAgentSpanContext extends Object
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

  • Constructor Details

    • OpenTelemetryAgentSpanContext

      public OpenTelemetryAgentSpanContext()
  • Method Details

    • isAvailable

      public static boolean isAvailable()
    • getCurrentTraceId

      @Nullable public String getCurrentTraceId()
    • getCurrentSpanId

      @Nullable public String getCurrentSpanId()
    • isCurrentSpanSampled

      public boolean isCurrentSpanSampled()
    • markCurrentSpanAsExemplar

      public void markCurrentSpanAsExemplar()