Package brave.propagation
Interface Propagation.RemoteGetter<R>
-
- Type Parameters:
R- usuallyRequest, such as an HTTP server request or message
- All Superinterfaces:
Propagation.Getter<R,String>
- Enclosing interface:
- Propagation<K>
public static interface Propagation.RemoteGetter<R> extends Propagation.Getter<R,String>
Used as an input toPropagation.extractor(Getter)extract the trace context and any baggage from propagated fields.- Since:
- 5.12
- See Also:
Propagation.RemoteSetter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringget(R request, String fieldName)Gets the propagation field as a single value.Span.KindspanKind()
-
-
-
Method Detail
-
spanKind
Span.Kind spanKind()
- Since:
- 5.12
- See Also:
Request.spanKind()
-
get
@Nullable String get(R request, String fieldName)
Gets the propagation field as a single value.Note: HTTP only permits multiple header fields with the same name when the format is a comma-separated list. An HTTP implementation of this method will assume presence of multiple values is valid and join them with a comma. See RFC 7230 for more.
- Specified by:
getin interfacePropagation.Getter<R,String>- Parameters:
request- see {@link #} fieldName- typically a header name- Returns:
- the value of the field or
null - Since:
- 5.12
-
-