org.typelevel.otel4s.TextMapGetter
See theTextMapGetter companion object Offers a way to get a string value associated with a given key.
A type class can be implemented for any data structure that stores key-value
pairs.
Attributes
- A
the type of the key-value carrier
- See also:
- Companion:
- object
- Source:
- TextMapGetter.scala
- Graph
- Supertypes
Members list
Concise view
Value members
Gets a string value from the carrier
associated with the given key
.
Gets a string value from the carrier
associated with the given key
.
Attributes
- carrier
the carrier to get a value from
- key
the key to get the value at
- Returns:
a scala.Some if the key
is present in carrier
and scala.None
otherwise
- Source:
- TextMapGetter.scala
Returns a list of all available keys in the given carrier
.
Returns a list of all available keys in the given carrier
.
Attributes
- carrier
the carrier to get keys from
- Returns:
a scala.List of all the keys in the carrier
- Source:
- TextMapGetter.scala