Class OpenTracingShim

java.lang.Object
io.opentelemetry.opentracingshim.OpenTracingShim

public final class OpenTracingShim extends Object
Factory for creating an OpenTracing Tracer that is implemented using the OpenTelemetry APIs.
Since:
1.26.0
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.opentracing.Tracer
    createTracerShim(io.opentelemetry.api.OpenTelemetry openTelemetry)
    Creates a io.opentracing.Tracer shim using the provided OpenTelemetry instance.
    static io.opentracing.Tracer
    createTracerShim(io.opentelemetry.api.trace.TracerProvider provider, io.opentelemetry.context.propagation.TextMapPropagator textMapPropagator, io.opentelemetry.context.propagation.TextMapPropagator httpPropagator)
    Creates a io.opentracing.Tracer shim using the provided TracerProvider and TextMapPropagator instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createTracerShim

      public static io.opentracing.Tracer createTracerShim(io.opentelemetry.api.OpenTelemetry openTelemetry)
      Creates a io.opentracing.Tracer shim using the provided OpenTelemetry instance. Uses the TracerProvider and TextMapPropagator associated with the OpenTelemetry instance.
      Parameters:
      openTelemetry - the OpenTelemetry instance used to create this shim.
      Returns:
      a io.opentracing.Tracer.
    • createTracerShim

      public static io.opentracing.Tracer createTracerShim(io.opentelemetry.api.trace.TracerProvider provider, io.opentelemetry.context.propagation.TextMapPropagator textMapPropagator, io.opentelemetry.context.propagation.TextMapPropagator httpPropagator)
      Creates a io.opentracing.Tracer shim using the provided TracerProvider and TextMapPropagator instance.
      Parameters:
      provider - the TracerProvider instance used to create this shim.
      textMapPropagator - the propagator used for Format.Builtin.TEXT_MAP format.
      httpPropagator - the propagator used for Format.Builtin.HTTP_HEADERS format.
      Returns:
      a io.opentracing.Tracer.