Interface Propagation.RemoteGetter<R>

Type Parameters:
R - usually Request, 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 to Propagation.extractor(Getter) extract the trace context and any baggage from propagated fields.
Since:
5.12
See Also:
Propagation.RemoteSetter
  • Method Details

    • spanKind

      Span.Kind spanKind()
      The only valid options are Span.Kind.SERVER, Span.Kind.PRODUCER, and Span.Kind.CONSUMER.
      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:
      get in interface Propagation.Getter<R,​String>
      Parameters:
      request - see {@link #}
      fieldName - typically a header name
      Returns:
      the value of the field or null
      Since:
      5.12