Package io.helidon.tracing.zipkin
Class ZipkinTracer
- java.lang.Object
-
- io.helidon.tracing.zipkin.ZipkinTracer
-
- All Implemented Interfaces:
Tracer
,Closeable
,AutoCloseable
public class ZipkinTracer extends Object implements Tracer
The ZipkinTracer delegates toBraveTracer
while creatingZipkinSpanBuilder
instead ofBraveSpanBuilder
. This class should not be sued directly, use eitherTracerBuilder
orZipkinTracerBuilder
.- See Also:
- Zipkin Attributes,
Zipkin Missing Service Name,
ZipkinSpanBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.opentracing.Tracer
Tracer.SpanBuilder
-
-
Constructor Summary
Constructors Constructor Description ZipkinTracer(brave.opentracing.BraveTracer tracer, List<Tag<?>> tags)
Create a zipkin tracer from the delegate (BraveTracer) and tags to be used by default for all traces.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Scope
activateSpan(Span span)
Span
activeSpan()
Tracer.SpanBuilder
buildSpan(String operationName)
void
close()
<C> SpanContext
extract(Format<C> format, C carrier)
<C> void
inject(SpanContext spanContext, Format<C> format, C carrier)
ScopeManager
scopeManager()
-
-
-
Method Detail
-
buildSpan
public Tracer.SpanBuilder buildSpan(String operationName)
-
inject
public <C> void inject(SpanContext spanContext, Format<C> format, C carrier)
-
extract
public <C> SpanContext extract(Format<C> format, C carrier)
-
scopeManager
public ScopeManager scopeManager()
- Specified by:
scopeManager
in interfaceTracer
-
activeSpan
public Span activeSpan()
- Specified by:
activeSpan
in interfaceTracer
-
close
public void close()
-
activateSpan
public Scope activateSpan(Span span)
- Specified by:
activateSpan
in interfaceTracer
-
-