Skip to main content

extract_carrier

Method
This is a method of the GatewayTraceHook class in the protocols module.
Return a propagation carrier extracted from inbound carrier. Reads W3C trace-context (traceparent/tracestate) from an inbound header mapping and returns a normalized carrier suitable to pass as stage(..., parent_carrier=...), or None when no usable context is present. A no-op returning None when no exporter is attached.

Signature

Parameters

'Mapping[str, str]'
required
No description available.

Returns

'Optional[Mapping[str, str]]'
The result of the operation.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 5237