C - carrier of propagation fields, such as an http request.public static interface TextFormat.Getter<C>
TextFormat to read propagated fields from a carrier.
Getter is stateless and allows to be saved as a constant to avoid runtime
allocations.
| Modifier and Type | Method and Description |
|---|---|
String |
get(C carrier,
String key)
Returns the first value of the given propagation
key or returns null. |
@Nullable String get(C carrier, String key)
key or returns null.carrier - carrier of propagation fields, such as an http request.key - the key of the field.key or returns null.