opentelemetry-propagator-ot-trace
OT Trace Propagator for OpenTelemetry
What it is and what it does
This package implements a trace context propagator for OpenTelemetry that follows the OT Trace format, a lightweight header-based protocol for passing distributed trace information across service boundaries. It handles serialization of trace IDs, span IDs, sampling decisions, and baggage key-value pairs into HTTP headers, and deserializes them on the receiving end to reconstruct trace context.
The propagator integrates with OpenTelemetry's instrumentation ecosystem and is designed for systems that need to interoperate with services using the OT Trace format. Trace IDs are truncated to 64-bits before sending on the wire, retaining the least significant bits to preserve trace identity across format boundaries.
Use it for:
- Propagate trace context in microservices that use the OT Trace format instead of other trace context standards.
- Enable distributed tracing in legacy systems or third-party services that expect ot-tracer-traceid and ot-tracer-spanid headers.
- Pass baggage metadata (ot-baggage-* headers) alongside trace context for correlation and context propagation.
- Integrate OpenTelemetry instrumentation with existing systems compatible with the OT Trace format.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides OpenTelemetry trace context propagation using the OT Trace format, enabling distributed tracing across services by serializing and deserializing trace IDs, span IDs, and baggage in HTTP headers.
Yes, if your system requires OT Trace format propagation for interoperability with legacy or third-party services. The package is actively maintained, has low install friction, carries a permissive Apache-2.0 license, and supports current Python versions (3.10 through 3.14). However, if you are building new distributed systems, consider whether alternative trace context standards would be more appropriate.
Install
opentelemetry-propagator-ot-trace on PyPI
pip
pip install opentelemetry-propagator-ot-traceuv
uv add opentelemetry-propagator-ot-tracepoetry
poetry add opentelemetry-propagator-ot-traceInstalling opentelemetry-propagator-ot-trace
Before you install
Low friction: pure Python wheel with only two runtime dependencies (opentelemetry-api and opentelemetry-sdk). Actively maintained as of 2026-08-14 with recent releases; repo is not archived and receives ongoing commits.
License in practice
Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restrictions on derivative works or redistribution.
Quickstart
pip install opentelemetry-propagator-ot-trace
from opentelemetry.propagators.ot_trace import OTTracePropagator
from opentelemetry.propagators import set_global_textmap
set_global_textmap(OTTracePropagator())
Requires Python >=3.10; opentelemetry-api and opentelemetry-sdk must be installed as runtime dependencies.
Verify before relying
- Whether the OT Trace format specification remains stable or is expected to evolve given the note that no formal specification currently exists.
- Performance characteristics when propagating baggage with many key-value pairs across high-volume trace contexts.
- Interoperability testing results with non-OpenTelemetry systems using the OT Trace format.
- How OpenTelemetry's trace IDs are truncated to 64-bit format and whether this truncation preserves trace identity.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — opentelemetry-api, opentelemetry-sdk |
| Maintenance | actively maintained — 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,047,087/month — #2,774 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_propagator_ot_trace-0.65b0-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
opentelemetry-processor-baggageAdds baggage context data from OpenTelemetry to…
permissive · top 5,000 on PyPI
opentelemetry-propagator-b3Implements the B3 trace context propagation…
permissive · top 5,000 on PyPI
opentelemetry-propagator-jaegerProvides trace context propagation for the…
permissive · top 5,000 on PyPI
opentelemetry-propagator-aws-xrayInjects and extracts AWS X-Ray tracing context…
permissive · top 5,000 on PyPI
opentelemetry-propagator-gcpPropagates trace context in Google Cloud's…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-djangoAdds distributed tracing to Django applications…
permissive · top 1,000 on PyPI
opentracingProvides the OpenTracing API for Python,…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-botoAdds distributed tracing to AWS SDK (Boto)…
permissive · top 5,000 on PyPI
opentelemetry-exporter-zipkin-proto-httpExports OpenTelemetry tracing data to Zipkin…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-threadingEnsures OpenTelemetry context is propagated…
permissive · top 1,000 on PyPI