$npx skillfedfor your agent

opentelemetry-processor-baggage

OpenTelemetry Baggage Span Processor

Worth itPyPI MonitoringReleased Jul 20264.3M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — opentelemetry_processor_baggage-0.65b0-py3-none-any.whl
v0.65b0 · released 2026-07-16 · Python >=3.10 · 3 runtime deps: opentelemetry-api, opentelemetry-sdk, wrapt

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

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.
Same gist for agents: .md · .json

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.

Worth 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

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
opentelemetry-apiopentelemetry-sdkwrapt
MaintenanceActively maintained 29 days since the last release
Last repo commit
First released
Downloads4,314,347 / month, #2,332 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
opentelemetry baggage span processorbaggage context propagation tracingspan attribute enrichment baggagedistributed trace context baggagebaggage log processor opentelemetrytrace context propagation filtering
Topics
opentelemetrydistributed-tracingobservability

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

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.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

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