W3CTraceContextPropagator

zio.blocks.telemetry.otel.W3CTraceContextPropagator

W3C TraceContext propagator implementing the traceparent/tracestate headers.

traceparent format: {version:2hex}-{trace-id:32hex}-{span-id:16hex}-{flags:2hex} Only version "00" is supported.

Attributes

See also
Source
W3CTraceContextPropagator.scala
Graph
Supertypes
trait Propagator
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override 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

Definition Classes
Source
W3CTraceContextPropagator.scala
override 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

Definition Classes
Source
W3CTraceContextPropagator.scala

Concrete fields

override val fields: Seq[String]

The header/field names this propagator reads and writes.

The header/field names this propagator reads and writes.

Attributes

Source
W3CTraceContextPropagator.scala