Skip to main content

OT Trace Propagator for OpenTelemetry

Project description

pypi

Installation

pip install opentelemetry-propagator-ot-trace

OTTrace Format

So far there is no “formal” specification of the OTTrace format. The best document that servers this purpose that exists now is this implementation.

Header Name

Description

Required

ot-tracer-traceid

uint64 encoded as a string of 16 hex characters

yes

ot-tracer-spanid

uint64 encoded as a string of 16 hex characters

yes

ot-tracer-sampled

boolean encoded as a string with the values true or false

no

ot-baggage-*

repeated string to string key-value baggage items; keys are prefixed with ot-baggage- and the corresponding value is the raw string

if baggage is present

Interop and trace ids

The OT Trace propagation format expects trace ids to be 64-bits. In order to interop with OpenTelemetry, trace ids need to be truncated to 64-bits before sending them on the wire. When truncating, the least significant (right-most) bits MUST be retained. For example, a trace id of 3c3039f4d78d5c02ee8e3e41b17ce105 would be truncated to ee8e3e41b17ce105.

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page