--- id: opentelemetry-propagator-b3 version: "1.44.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # opentelemetry-propagator-b3 — OpenTelemetry B3 Propagator License: permissive · Maintenance: active · Downloads: 4.8M/mo ## What it is and what it does This package provides a B3 propagator for OpenTelemetry Python, implementing the B3 trace context format used by distributed tracing systems. It handles the serialization and deserialization of trace identifiers and sampling decisions into HTTP headers or other carrier formats, allowing trace context to flow across service boundaries in microservice architectures. The propagator integrates with the OpenTelemetry API and is designed to be used alongside the OpenTelemetry SDK and instrumentation packages. It depends only on opentelemetry-api and typing-extensions, keeping the installation lightweight. The package is production-stable, supports Python 3.10 through 3.14, and receives regular maintenance from the OpenTelemetry project. Use it for: - Propagate trace context in HTTP requests between microservices using B3 headers - Integrate legacy B3-instrumented systems with OpenTelemetry observability pipelines - Extract trace IDs and sampling decisions from incoming B3-formatted requests in service handlers - Enable correlation of logs and metrics across services that use B3 trace propagation ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Implements the B3 trace context propagation format for OpenTelemetry, enabling distributed tracing across services by injecting and extracting trace headers. Yes. Install this if you need B3 trace propagation in an OpenTelemetry-instrumented application or are integrating with systems that use B3 headers. Low install friction, active maintenance, no security vulnerabilities, and permissive licensing make it a straightforward choice for distributed tracing scenarios. ## Install pip install opentelemetry-propagator-b3 uv add opentelemetry-propagator-b3 poetry add opentelemetry-propagator-b3 ## Installing opentelemetry-propagator-b3 Before you install: Low friction install with minimal dependencies. Actively maintained with a recent release (29 days old) and backed by the OpenTelemetry project's established infrastructure. License in practice: Apache-2.0 permissive license allows free use, modification, and distribution in both open and closed-source projects without copyleft obligations. Quickstart: pip install opentelemetry-propagator-b3 from opentelemetry.propagators.b3 import B3Format from opentelemetry import trace # B3Format is registered and used by OpenTelemetry instrumentations # to inject/extract trace context in B3 format Requires Python 3.10 or later; opentelemetry-api must be installed and configured with appropriate SDK and instrumentations for tracing to function. Verify before relying: - Whether B3 single-header format is supported in addition to multi-header format - Performance characteristics when propagating traces at high throughput - Compatibility with non-OpenTelemetry B3 implementations ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 4.8M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags b3 trace propagation, distributed tracing headers, opentelemetry propagator, trace context injection, b3 format propagation, cross-service tracing, opentelemetry b3, distributed-tracing, observability, b3-format [View on SkillFed](https://skillfed.io/packages/opentelemetry-propagator-b3) · [View on PyPI](https://pypi.org/project/opentelemetry-propagator-b3/)