opentelemetry-processor-baggage
OpenTelemetry Baggage Span Processor
Decision gist · record as of 2026-08-14
Yes. This is an actively maintained, low-friction component of the OpenTelemetry ecosystem with no known vulnerabilities, permissive licensing, and a clear use case for distributed tracing. Install it if you use OpenTelemetry and need to propagate baggage context to spans or logs; skip it if you do not use baggage or do not need automatic context enrichment.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; opentelemetry-api and opentelemetry-sdk must be installed and configured first.
- Low friction install with three stable runtime dependencies (opentelemetry-api, opentelemetry-sdk, wrapt).
- Package is actively maintained with recent releases and no known vulnerabilities.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
last release 2026-07-16 (29 days) · last repo commit 2026-08-14 · 1,086 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,314,347 downloads/mo, #2,332 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-processor-baggage
from opentelemetry.processor.baggage import BaggageSpanProcessor, ALLOW_ALL_BAGGAGE_KEYS
from opentelemetry.sdk.trace import TracerProvider
tracer_provider = TracerProvider()
tracer_provider.add_span_processor(BaggageSpanProcessor(ALLOW_ALL_BAGGAGE_KEYS))- Whether baggage key filtering performance scales well with large numbers of predicates or complex regex patterns.
- How baggage propagation behaves when external services do not have a BaggageSpanProcessor configured.
What it is and what it does
This package provides span and log processors for OpenTelemetry that automatically attach baggage context data to traces and logs. Baggage is a W3C standard mechanism for propagating key-value pairs across service boundaries in distributed systems. The BaggageSpanProcessor reads baggage entries from the current context when a span starts and adds them as span attributes; the BaggageLogProcessor does the same for log records. Both processors support filtering via custom predicates, so you can control which baggage keys are copied—useful when baggage contains sensitive data that should not appear in all spans.
The package integrates directly with opentelemetry-api and opentelemetry-sdk, requiring only that you add the processor to your tracer or logger provider. Baggage entries propagated to child spans and external services will be visible in those systems if they also have a baggage processor configured. The documentation explicitly warns against storing sensitive information in baggage, since it will appear in all outgoing HTTP headers from your application.
Use it for
- Attach request IDs or user context from baggage to all child spans in a distributed trace for correlation.
- Filter and copy only specific baggage keys to spans to avoid exposing sensitive data in observability systems.
- Propagate trace metadata (e.g., feature flags, tenant IDs) across service boundaries automatically.
- Enrich log records with baggage context so logs and traces share the same contextual attributes.
- Implement custom baggage filtering logic via predicates to enforce organizational data governance policies.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is an actively maintained, low-friction component of the OpenTelemetry ecosystem with no known vulnerabilities, permissive licensing, and a clear use case for distributed tracing. Install it if you use OpenTelemetry and need to propagate baggage context to spans or logs; skip it if you do not use baggage or do not need automatic context enrichment.
Install
opentelemetry-processor-baggage on PyPI
Before you install
Low friction install with three stable runtime dependencies (opentelemetry-api, opentelemetry-sdk, wrapt). Package is actively maintained with recent releases and no known vulnerabilities.
Requires Python 3.10 or later; opentelemetry-api and opentelemetry-sdk must be installed and configured first.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install opentelemetry-processor-baggage
from opentelemetry.processor.baggage import BaggageSpanProcessor, ALLOW_ALL_BAGGAGE_KEYS
from opentelemetry.sdk.trace import TracerProvider
tracer_provider = TracerProvider()
tracer_provider.add_span_processor(BaggageSpanProcessor(ALLOW_ALL_BAGGAGE_KEYS))
Verify before relying
- Whether baggage key filtering performance scales well with large numbers of predicates or complex regex patterns.
- How baggage propagation behaves when external services do not have a BaggageSpanProcessor configured.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesopentelemetry-apiopentelemetry-sdkwrapt |
| Maintenance | Actively maintained 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,314,347 / month, #2,332 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | 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 |
Evidence: opentelemetry_processor_baggage-0.65b0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “opentelemetry baggage span processor”
- opentelemetry-processor-baggageAdds baggage context data from OpenTelemetry to spans and logs as…
- opentelemetry-propagator-ot-traceProvides OpenTelemetry trace context propagation using the OT Trace…
- pyroscope-otelConnects OpenTelemetry tracing with Pyroscope continuous profiling,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also opentelemetry-propagator-ot-trace · opentelemetry-instrumentation-sklearn · pyroscope-otel · opentelemetry-propagator-jaeger · opentelemetry-instrumentation-threading · opentelemetry-propagator-aws-xray · openinference-instrumentation-mcp · opentelemetry-propagator-b3 · azure-core-tracing-opentelemetry · opentelemetry-instrumentation-django