Class W3CPropagation
java.lang.Object
brave.propagation.Propagation.Factory
io.micrometer.tracing.brave.bridge.W3CPropagation
- All Implemented Interfaces:
brave.propagation.Propagation<String>
public class W3CPropagation
extends brave.propagation.Propagation.Factory
implements brave.propagation.Propagation<String>
Adopted from OpenTelemetry API.
Implementation of the TraceContext propagation protocol. See w3c/distributed-tracing.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface brave.propagation.Propagation
brave.propagation.Propagation.Factory, brave.propagation.Propagation.Getter<R extends Object,K extends Object>, brave.propagation.Propagation.KeyFactory<K extends Object>, brave.propagation.Propagation.RemoteGetter<R extends Object>, brave.propagation.Propagation.RemoteSetter<R extends Object>, brave.propagation.Propagation.Setter<R extends Object, K extends Object> -
Field Summary
Fields inherited from interface brave.propagation.Propagation
B3_SINGLE_STRING, B3_STRING -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance ofW3CPropagationwithout baggage support.W3CPropagation(io.micrometer.tracing.BaggageManager baggageManager, List<String> localFields) Creates an instance ofW3CPropagationwith baggage support. -
Method Summary
Methods inherited from class brave.propagation.Propagation.Factory
decorate, get, requires128BitTraceId, supportsJoin
-
Constructor Details
-
W3CPropagation
public W3CPropagation(io.micrometer.tracing.BaggageManager baggageManager, List<String> localFields) Creates an instance ofW3CPropagationwith baggage support.- Parameters:
baggageManager- baggage managerlocalFields- local fields to be registered as baggage
-
W3CPropagation
public W3CPropagation()Creates an instance ofW3CPropagationwithout baggage support.
-
-
Method Details
-
create
public <K> brave.propagation.Propagation<K> create(brave.propagation.Propagation.KeyFactory<K> keyFactory) - Specified by:
createin classbrave.propagation.Propagation.Factory
-
keys
- Specified by:
keysin interfacebrave.propagation.Propagation<String>
-
injector
public <R> brave.propagation.TraceContext.Injector<R> injector(brave.propagation.Propagation.Setter<R, String> setter) - Specified by:
injectorin interfacebrave.propagation.Propagation<String>
-
extractor
public <R> brave.propagation.TraceContext.Extractor<R> extractor(brave.propagation.Propagation.Getter<R, String> getter) - Specified by:
extractorin interfacebrave.propagation.Propagation<String>
-