Top Description Methods
io.opentelemetry.context.propagation

public Interface TextMapGetter<C>

Known Direct Subinterfaces
io.opentelemetry.context.propagation.internal.ExtendedTextMapGetter
Type Parameters
<C>
carrier of propagation fields, such as an http request.
Imports
javax.annotation.Nullable

Interface that allows a TextMapPropagator to read propagated fields from a carrier.

Getter is stateless and allows to be saved as a constant to avoid runtime allocations.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the first value of the given propagation key or returns null.
get
(C
carrier of propagation fields, such as an http request.
carrier
,
String
the key of the field.
key
)

Returns the first value of the given propagation key or returns null.

public Iterable<String>
keys(C
carrier of propagation fields, such as an http request.
carrier
)

Returns all the keys in the given carrier.

Method Detail

getback to summary
public String get(C carrier, String key)

Returns the first value of the given propagation key or returns null.

Parameters
carrier:C

carrier of propagation fields, such as an http request.

key:String

the key of the field.

Returns:String

the first value of the given propagation key or returns null.

Annotations
@Nullable
keysback to summary
public Iterable<String> keys(C carrier)

Returns all the keys in the given carrier.

Parameters
carrier:C

carrier of propagation fields, such as an http request.

Since
0.10.0