Propagation<K>public final class B3SinglePropagation<K> extends Object implements Propagation<K>
B3SingleFormat.Propagation.Factory, Propagation.Getter<C,K>, Propagation.KeyFactory<K>, Propagation.Setter<C,K>| Modifier and Type | Field | Description |
|---|---|---|
static Propagation.Factory |
FACTORY |
B3_SINGLE_STRING, 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.
Note: If your implementation carries "extra fields", such as correlation IDs, do not return the names of those fields here. If you do, they will be deleted, which can interfere with user headers.
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 © 2018 OpenZipkin. All rights reserved.