Top Description Methods
io.opentelemetry.context.propagation.internal

public Interface ExtendedTextMapGetter<C>

extends TextMapGetter<C>
Type Parameters
<C>
carrier of propagation fields, such as an http request.
Imports
io.opentelemetry.context.propagation.TextMapGetter, java.util.Collections, .Iterator, javax.annotation.Nullable

Extends TextMapGetter to return possibly multiple values for a given key.

This class is internal and experimental. Its APIs are unstable and can change at any time. Its APIs (or a version of them) may be promoted to the public stable API in the future, but no guarantees are made.

Method Summary

Modifier and TypeMethod and Description
public default Iterator<String>

Returns:

all values for a given key in order, or returns an empty list. Default method wraps get() as an Iterator.
getAll
(C
carrier of propagation fields, such as an http request.
carrier
,
String
the key of the field.
key
)

If implemented, returns all values for a given key in order, or returns an empty list.

Inherited from io.opentelemetry.context.propagation.TextMapGetter:
getkeys

Method Detail

getAllback to summary
public default Iterator<String> getAll(C carrier, String key)

If implemented, returns all values for a given key in order, or returns an empty list.

The default method returns the first value of the given propagation key as a singleton list, or returns an empty list.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

Parameters
carrier:C

carrier of propagation fields, such as an http request.

key:String

the key of the field.

Returns:Iterator<String>

all values for a given key in order, or returns an empty list. Default method wraps get() as an Iterator.