OtelContext

zio.blocks.telemetry.otel.OtelContext
See theOtelContext companion object
final case class OtelContext(spanContext: Option[SpanContext])

Bridges the otel module's ContextStorage with zio-blocks Context[R].

OtelContext captures the current span context from a ContextStorage, enabling type-safe context threading via Context[R & OtelContext].

Value parameters

spanContext

the active span context, if any

Attributes

Companion
object
Source
OtelContext.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala