Propagator

zio.blocks.telemetry.otel.Propagator
trait Propagator

A propagator extracts and injects SpanContext from/into a carrier using getter/setter functions. This abstraction enables context propagation across process boundaries (e.g., HTTP headers, message queue metadata).

Attributes

Source
Propagator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def extract[C](carrier: C, getter: (C, String) => Option[String]): Option[SpanContext]

Extracts a SpanContext from the carrier. Returns None if no valid context is found or the input is malformed.

Extracts a SpanContext from the carrier. Returns None if no valid context is found or the input is malformed.

Attributes

Source
Propagator.scala
def fields: Seq[String]

The header/field names this propagator reads and writes.

The header/field names this propagator reads and writes.

Attributes

Source
Propagator.scala
def inject[C](spanContext: SpanContext, carrier: C, setter: (C, String, String) => C): C

Injects a SpanContext into the carrier, returning the modified carrier.

Injects a SpanContext into the carrier, returning the modified carrier.

Attributes

Source
Propagator.scala