Package io.helidon.tracing.zipkin
Class ZipkinTracerProvider
- java.lang.Object
-
- io.helidon.tracing.zipkin.ZipkinTracerProvider
-
- All Implemented Interfaces:
TracerProvider
@Priority(5000) public class ZipkinTracerProvider extends Object implements TracerProvider
Zipkin java service.
-
-
Constructor Summary
Constructors Constructor Description ZipkinTracerProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TracerBuilder<?>
createBuilder()
Create a new builder for this tracer.Map<String,List<String>>
updateOutboundHeaders(Span currentSpan, Tracer tracer, SpanContext parentSpan, Map<String,List<String>> outboundHeaders, Map<String,List<String>> inboundHeaders)
Update headers for outbound requests.
-
-
-
Method Detail
-
createBuilder
public TracerBuilder<?> createBuilder()
Description copied from interface:TracerProvider
Create a new builder for this tracer.- Specified by:
createBuilder
in interfaceTracerProvider
- Returns:
- a tracer builder
-
updateOutboundHeaders
public Map<String,List<String>> updateOutboundHeaders(Span currentSpan, Tracer tracer, SpanContext parentSpan, Map<String,List<String>> outboundHeaders, Map<String,List<String>> inboundHeaders)
Description copied from interface:TracerProvider
Update headers for outbound requests. The outboundHeaders already contain injected from tracer viaTracer.inject(SpanContext, Format, Object)
. This is to enable fine grained tuning of propagated headers for each implementation.- Specified by:
updateOutboundHeaders
in interfaceTracerProvider
- Parameters:
currentSpan
- Current span covering the outbound calltracer
- Tracer usedparentSpan
- Parent span context (may be null)outboundHeaders
- Tracing headers map as configured by the tracerinboundHeaders
- Existing inbound headers (may be empty if not within a scope of a request)- Returns:
- new map of outbound headers, defaults to tracing headers
-
-