Skip to main content

Module

W3C distributed-tracing utilities for Splunk AO.

_CaseInsensitiveGetter

Read all case-insensitive carrier values without collapsing duplicates.

extract_tracing_context

Extract W3C trace context from an incoming text-map carrier.

get_tracing_headers

Inject the active operation’s W3C trace context into a carrier. Arguments
  • carrier (MutableMapping[str, str] | None): Existing carrier to populate. A new dictionary is created when omitted.
Raises
  • SplunkAOLoggerException: If there is no active exportable operation span. The internal Splunk AO trace envelope is not exportable and cannot be used as a wire parent.
Returns
  • MutableMapping[str, str]: The supplied carrier, or a new dictionary, containing traceparent and any other fields owned by the configured OTel propagator.