Package brave.propagation
Interface Propagation.RemoteSetter<R>
-
- Type Parameters:
R- usuallyRequest, such as an HTTP server request or message
- All Superinterfaces:
Propagation.Setter<R,String>
- Enclosing interface:
- Propagation<K>
public static interface Propagation.RemoteSetter<R> extends Propagation.Setter<R,String>
Used as an input toPropagation.injector(Setter)inject the trace context and any baggage as propagated fields.- Since:
- 5.12
- See Also:
Propagation.RemoteGetter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidput(R request, String fieldName, String value)Replaces a propagation field with the given value.Span.KindspanKind()
-
-
-
Method Detail
-
spanKind
Span.Kind spanKind()
- Since:
- 5.12
- See Also:
Request.spanKind()
-
put
void put(R request, String fieldName, String value)
Replaces a propagation field with the given value.Note: Implementations attempt to overwrite all values. This means that when the caller is encoding multi-value (comma-separated list) HTTP header, they MUST join all values on comma into a single string.
- Specified by:
putin interfacePropagation.Setter<R,String>- Parameters:
request- see {@link #} fieldName- typically a header namevalue- non-nullvalue to replace any values with- Since:
- 5.12
- See Also:
Propagation.RemoteGetter
-
-