Interface TracerConverter
-
public interface TracerConverterFunction converting an existingTracer.This can be useful for wrapping tracers:
public final class FooWrapperConverter implements TracerConverter { public Tracer convert(Tracer existingTracer) { return new FooTracerWrapper(existingTracer); } }If there are multiple TracerConverter implementations resolved, they will be applied in the order of their @Priority annotation:
- First, non-negative priority is applied in natural order (e.g.
0,1,2, ...). - Next, objects without
@Priorityannotation are applied by assigning a default priority ofInteger.MAX_VALUE. - Finally, negative priority is applied in reverse-natural order (e.g.
-1,-2,-3, ...).
The order of objects with equal (implicit) priority is undefined.
- Author:
- Sjoerd Talsma
- First, non-negative priority is applied in natural order (e.g.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.opentracing.Tracerconvert(io.opentracing.Tracer existingTracer)Function that converts aTracer.
-