Skip to content

Latest commit

 

History

History
 
 

opentracing-shim

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

OpenTelemetry - OpenTracing Shim

Javadocs

The OpenTracing shim is a bridge layer from OpenTelemetry to the OpenTracing API. It takes OpenTelemetry Tracer and exposes it as an implementation of an OpenTracing Tracer.

Usage

There are 2 ways to expose an OpenTracing tracer:

  1. From the global OpenTelemetry configuration:
    Tracer tracer = OpenTracingShim.createTracerShim();
  2. From a provided OpenTelemetry instance:
    Tracer tracer = OpenTracingShim.createTracerShim(openTelemetry);

Optionally register the tracer as the OpenTracing GlobalTracer:

GlobalTracer.registerIfAbsent(tracer);