Class OpenTracingShim


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static io.opentracing.Tracer createTracerShim()
      Creates a io.opentracing.Tracer shim out of OpenTelemetry.getGlobalTracerProvider() and OpenTelemetry.getGlobalPropagators().
      static io.opentracing.Tracer createTracerShim​(io.opentelemetry.api.OpenTelemetry openTelemetry)
      Creates a io.opentracing.Tracer shim using the provided OpenTelemetry instance.
      • Methods inherited from class java.lang.Object

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

      • createTracerShim

        public static io.opentracing.Tracer createTracerShim()
        Creates a io.opentracing.Tracer shim out of OpenTelemetry.getGlobalTracerProvider() and OpenTelemetry.getGlobalPropagators().
        Returns:
        a io.opentracing.Tracer.
      • createTracerShim

        public static io.opentracing.Tracer createTracerShim​(io.opentelemetry.api.OpenTelemetry openTelemetry)
        Creates a io.opentracing.Tracer shim using the provided OpenTelemetry instance.
        Parameters:
        openTelemetry - the OpenTelemetry instance used to create this shim.
        Returns:
        a io.opentracing.Tracer.