TextMapGetter

org.typelevel.otel4s.TextMapGetter
See theTextMapGetter companion object
trait TextMapGetter[A]

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:

See TextMapSetter to set a value into the carrier

Companion:
object
Source:
TextMapGetter.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def get(carrier: A, key: String): Option[String]

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
def keys(carrier: A): List[String]

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