skillfed

opentelemetry-propagator-ot-trace

OT Trace Propagator for OpenTelemetry

opentelemetry-propagator-ot-trace v0.65b0 3.0M downloads/30d#2,774 on PyPI1,086
Permissive license Apache-2.0 Active released

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-trace

uv

uv add opentelemetry-propagator-ot-trace

poetry

poetry add opentelemetry-propagator-ot-trace

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

opentelemetry trace propagationot trace format propagatordistributed tracing contexttrace id span id propagationopentelemetry baggage headershttp trace context serialization
distributed-tracingopentelemetryobservability

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

opentelemetry-processor-baggage

Adds baggage context data from OpenTelemetry to…

permissive · top 5,000 on PyPI

opentelemetry-propagator-b3

Implements the B3 trace context propagation…

permissive · top 5,000 on PyPI

opentelemetry-propagator-jaeger

Provides trace context propagation for the…

permissive · top 5,000 on PyPI

opentelemetry-propagator-aws-xray

Injects and extracts AWS X-Ray tracing context…

permissive · top 5,000 on PyPI

opentelemetry-propagator-gcp

Propagates trace context in Google Cloud's…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-django

Adds distributed tracing to Django applications…

permissive · top 1,000 on PyPI

opentracing

Provides the OpenTracing API for Python,…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-boto

Adds distributed tracing to AWS SDK (Boto)…

permissive · top 5,000 on PyPI

opentelemetry-exporter-zipkin-proto-http

Exports OpenTelemetry tracing data to Zipkin…

permissive · top 15,000 on PyPI

opentelemetry-instrumentation-threading

Ensures OpenTelemetry context is propagated…

permissive · top 1,000 on PyPI