Propagation<K>public final class B3Propagation<K> extends Object implements Propagation<K>
Propagation.Factory, Propagation.Getter<C,K>, Propagation.KeyFactory<K>, Propagation.Setter<C,K>| Modifier and Type | Field | Description |
|---|---|---|
static Propagation.Factory |
FACTORY |
B3_STRING| Modifier and Type | Method | Description |
|---|---|---|
<C> TraceContext.Extractor<C> |
extractor(Propagation.Getter<C,K> getter) |
|
<C> TraceContext.Injector<C> |
injector(Propagation.Setter<C,K> setter) |
Replaces a propagated field with the given value.
|
List<K> |
keys() |
The propagation fields defined.
|
public static final Propagation.Factory FACTORY
public List<K> keys()
PropagationPropagation.Setter.put(Object, Object, String).
For example, if the carrier is a single-use or immutable request object, you don't need to clear fields as they couldn't have been set before. If it is a mutable, retryable object, successive calls should clear these fields first.
keys in interface Propagation<K>public <C> TraceContext.Injector<C> injector(Propagation.Setter<C,K> setter)
PropagationHttpURLConnection would be the method reference
URLConnection.addRequestProperty(String, String)injector in interface Propagation<K>setter - invoked for each propagation key to add.public <C> TraceContext.Extractor<C> extractor(Propagation.Getter<C,K> getter)
extractor in interface Propagation<K>getter - invoked for each propagation key to get.Copyright © 2017 OpenZipkin. All rights reserved.