public interface TracerConverter
Tracer.
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:
0, 1, 2, ...).@Priority annotation are applied
by assigning a default priority of Integer.MAX_VALUE.-1, -2, -3, ...).The order of objects with equal (implicit) priority is undefined.
| Modifier and Type | Method and Description |
|---|---|
io.opentracing.Tracer |
convert(io.opentracing.Tracer existingTracer)
Function that converts a
Tracer. |
Copyright © 2017–2019. All rights reserved.