← ZIO Telemetry docs

ContextStorage

zio.telemetry.opentelemetry.context.ContextStorage
sealed trait ContextStorage

An interface crafted to offer abstraction from the approach of context propagation.

Attributes

Source
ContextStorage.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def get(implicit trace: Trace): UIO[Context]

Attributes

Source
ContextStorage.scala
def getAndSet(context: Context)(implicit trace: Trace): UIO[Context]

Attributes

Source
ContextStorage.scala
def locally[R, E, A](context: Context)(zio: ZIO[R, E, A])(implicit trace: Trace): ZIO[R, E, A]

Attributes

Source
ContextStorage.scala
def locallyScoped(context: Context)(implicit trace: Trace): ZIO[Scope, Nothing, Unit]

Attributes

Source
ContextStorage.scala
def set(context: Context)(implicit trace: Trace): UIO[Unit]

Attributes

Source
ContextStorage.scala
def updateAndGet(f: Context => Context)(implicit trace: Trace): UIO[Context]

Attributes

Source
ContextStorage.scala