Package io.opentelemetry.opentracingshim
Class OpenTracingShim
java.lang.Object
io.opentelemetry.opentracingshim.OpenTracingShim
Factory for creating an OpenTracing
Tracer that is implemented using the
OpenTelemetry APIs.- Since:
- 1.26.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.opentracing.TracercreateTracerShim(io.opentelemetry.api.OpenTelemetry openTelemetry) Creates aio.opentracing.Tracershim using the providedOpenTelemetryinstance.static io.opentracing.TracercreateTracerShim(io.opentelemetry.api.trace.TracerProvider provider, io.opentelemetry.context.propagation.TextMapPropagator textMapPropagator, io.opentelemetry.context.propagation.TextMapPropagator httpPropagator) Creates aio.opentracing.Tracershim using the providedTracerProviderandTextMapPropagatorinstance.
-
Method Details
-
createTracerShim
public static io.opentracing.Tracer createTracerShim(io.opentelemetry.api.OpenTelemetry openTelemetry) Creates aio.opentracing.Tracershim using the providedOpenTelemetryinstance. Uses theTracerProviderandTextMapPropagatorassociated with theOpenTelemetryinstance.- Parameters:
openTelemetry- theOpenTelemetryinstance 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 aio.opentracing.Tracershim using the providedTracerProviderandTextMapPropagatorinstance.- Parameters:
provider- theTracerProviderinstance used to create this shim.textMapPropagator- the propagator used forFormat.Builtin.TEXT_MAPformat.httpPropagator- the propagator used forFormat.Builtin.HTTP_HEADERSformat.- Returns:
- a
io.opentracing.Tracer.
-