Class OpenTelemetryAgentSpanContextSupplier

  • All Implemented Interfaces:
    io.prometheus.client.exemplars.tracer.common.SpanContextSupplier

    public class OpenTelemetryAgentSpanContextSupplier
    extends Object
    implements io.prometheus.client.exemplars.tracer.common.SpanContextSupplier
    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.
    • Method Detail

      • getTraceId

        public String getTraceId()
        Specified by:
        getTraceId in interface io.prometheus.client.exemplars.tracer.common.SpanContextSupplier
      • getSpanId

        public String getSpanId()
        Specified by:
        getSpanId in interface io.prometheus.client.exemplars.tracer.common.SpanContextSupplier
      • isSampled

        public boolean isSampled()
        Specified by:
        isSampled in interface io.prometheus.client.exemplars.tracer.common.SpanContextSupplier