← ZIO Telemetry docs

IncomingContextCarrier

zio.telemetry.opentelemetry.context.IncomingContextCarrier
See theIncomingContextCarrier companion object
trait IncomingContextCarrier[T] extends TextMapGetter[T]

The wrapper for the context data from the external process.

Attributes

Companion
object
Source
IncomingContextCarrier.scala
Graph
Supertypes
trait TextMapGetter[T]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def getAllKeys(carrier: T): Iterable[String]

Scala API for the keys method.

Scala API for the keys method.

Value parameters

carrier

the context data

Attributes

Returns

all the keys saved in the current context

Source
IncomingContextCarrier.scala
def getByKey(carrier: T, key: String): Option[String]

Scala API for the get method.

Scala API for the get method.

Value parameters

carrier

the context data

Attributes

Returns

optional value by the given key saved in the current context

Source
IncomingContextCarrier.scala

Concrete methods

override def get(carrier: T, key: String): String

Attributes

Definition Classes
TextMapGetter
Source
IncomingContextCarrier.scala
override def keys(carrier: T): Iterable[String]

Attributes

Definition Classes
TextMapGetter
Source
IncomingContextCarrier.scala

Inherited methods

def getAll(x$0: T, x$1: String): Iterator[String]

Attributes

Inherited from:
TextMapGetter

Inherited and Abstract fields

val kernel: T

The data to be injected/extracted into/from the current context

The data to be injected/extracted into/from the current context

Attributes

Inherited from:
ContextCarrier (hidden)
Source
ContextCarrier.scala