C - carrier of propagation fields, such as an http requestpublic static interface Propagator.Setter<C>
TextMapPropagator to set propagated fields into a
carrier.
Setter is stateless and allows to be saved as a constant to avoid runtime
allocations.
| Modifier and Type | Method and Description |
|---|---|
void |
set(C carrier,
String key,
String value)
Replaces a propagated field with the given value.
|
void set(@Nullable
C carrier,
String key,
String value)
For example, a setter for an HttpURLConnection would be the
method reference
URLConnection.addRequestProperty(String, String)
carrier - holds propagation fields. For example, an outgoing message or
http request. To facilitate implementations as java lambdas, this parameter may
be null.key - the key of the field.value - the value of the field.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.