Package org.teiid.jdbc.tracing
Class GlobalTracerInjector
- java.lang.Object
-
- org.teiid.jdbc.tracing.GlobalTracerInjector
-
- All Implemented Interfaces:
TracingHelper.Injector
public class GlobalTracerInjector extends Object implements TracingHelper.Injector
Uses the opentracing library to create a json string representation of the span context and provides a way to manipulate a static tracer without using the GlobalTracer registration
-
-
Constructor Summary
Constructors Constructor Description GlobalTracerInjector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSpanContext()
protected static String
getSpanContext(io.opentracing.Tracer tracer)
static io.opentracing.Tracer
getTracer()
static void
setTracer(io.opentracing.Tracer tracer)
-
-
-
Method Detail
-
getSpanContext
public String getSpanContext()
- Specified by:
getSpanContext
in interfaceTracingHelper.Injector
-
getSpanContext
protected static String getSpanContext(io.opentracing.Tracer tracer)
-
getTracer
public static io.opentracing.Tracer getTracer()
-
setTracer
public static void setTracer(io.opentracing.Tracer tracer)
-
-