OtelContext

zio.blocks.telemetry.otel.OtelContext
See theOtelContext companion class
object OtelContext

Attributes

Companion
class
Source
OtelContext.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def current(storage: ContextStorage[Option[SpanContext]]): OtelContext

Snapshots the current span context from the given storage.

Snapshots the current span context from the given storage.

Attributes

Source
OtelContext.scala
def withSpan[A](span: Span, storage: ContextStorage[Option[SpanContext]])(f: => A): A

Executes f with the given span's context set as current in storage. Restores the previous context afterward (even if f throws).

Executes f with the given span's context set as current in storage. Restores the previous context afterward (even if f throws).

Attributes

Source
OtelContext.scala

Implicits

Implicits

Attributes

Source
OtelContext.scala