Returns a SpanContext instance extracted from carrier
in the
given format from upstream.
the format of the carrier.
the carrier of propagation fields, such as an http request.
SpanContext The extracted SpanContext, or null if no such SpanContext could be found in carrier.
Injects the given SpanContext instance to transmit over the wire.
OpenTelemetry defines a common set of format values (BinaryFormat and
HTTPTextFormat), and each has an expected carrier
type.
the SpanContext to transmit over the wire.
the format of the carrier.
the carrier of propagation fields, such as an http request.
Generated using TypeDoc
Injects and extracts a value as text into carriers that travel in-band across process boundaries. Encoding is expected to conform to the HTTP Header Field semantics. Values are often encoded as RPC/HTTP request headers.
The carrier of propagated data on both the client (injector) and server (extractor) side is usually an http request. Propagation is usually implemented via library- specific request interceptors, where the client-side injects values and the server-side extracts them.