opentelemetry-propagator-aws-xray
AWS X-Ray Propagator for OpenTelemetry
Decision gist · record as of 2026-08-14
Yes. This is a production-stable, actively maintained library with no known vulnerabilities, low install friction, and a permissive license. Install it if you are using OpenTelemetry in an AWS environment and need X-Ray trace propagation. Note the documentation caveat: ensure X-Amzn-Trace-Id headers include Sampled=1 to enable child span sampling.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires opentelemetry-api to be installed; Python 3.8 or later.
- Low friction installation with a single runtime dependency (opentelemetry-api).
- Actively maintained with recent commits and production-stable status.
License · maintenance · safety
permissive license (permissive) — Licensed under Apache Software License (permissive), allowing commercial and private use without restriction.
last release 2024-08-05 (739 days) · last repo commit 2026-08-14 · 1,086 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 11,953,783 downloads/mo, #1,351 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-propagator-aws-xray
from opentelemetry.propagate import set_global_textmap
from opentelemetry.propagators.aws import AwsXRayPropagator
set_global_textmap(AwsXRayPropagator())- Whether X-Amzn-Trace-Id headers are automatically set to Sampled=1 or require manual configuration in all deployment scenarios.
- Performance impact when propagating traces across high-volume AWS service calls.
What it is and what it does
This package provides an OpenTelemetry propagator that handles the AWS X-Ray trace context format, specifically the X-Amzn-Trace-Id header. It allows traces initiated in one AWS service to be correctly linked to downstream services by injecting and extracting tracing context in the format X-Ray expects.
The propagator integrates with OpenTelemetry's global propagation system, either via environment variable (OTEL_PROPAGATORS=xray) or by explicitly setting it in code. It is a thin adapter layer between OpenTelemetry's span context model and AWS X-Ray's header format, with no external dependencies beyond opentelemetry-api itself.
Use it for
- Trace requests flowing through multiple AWS Lambda functions, ECS tasks, or EC2 instances using OpenTelemetry.
- Correlate logs and metrics with X-Ray traces when using AWS CloudWatch and X-Ray together.
- Export OpenTelemetry spans to AWS X-Ray for visualization and analysis of distributed request flows.
- Integrate on-premises or third-party services into an AWS X-Ray tracing pipeline via OpenTelemetry.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a production-stable, actively maintained library with no known vulnerabilities, low install friction, and a permissive license. Install it if you are using OpenTelemetry in an AWS environment and need X-Ray trace propagation. Note the documentation caveat: ensure X-Amzn-Trace-Id headers include Sampled=1 to enable child span sampling.
Install
opentelemetry-propagator-aws-xray on PyPI
Before you install
Low friction installation with a single runtime dependency (opentelemetry-api). Actively maintained with recent commits and production-stable status.
Requires opentelemetry-api to be installed; Python 3.8 or later.
License in practice
Licensed under Apache Software License (permissive), allowing commercial and private use without restriction.
Quickstart
pip install opentelemetry-propagator-aws-xray
from opentelemetry.propagate import set_global_textmap
from opentelemetry.propagators.aws import AwsXRayPropagator
set_global_textmap(AwsXRayPropagator())
Verify before relying
- Whether X-Amzn-Trace-Id headers are automatically set to Sampled=1 or require manual configuration in all deployment scenarios.
- Performance impact when propagating traces across high-volume AWS service calls.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageopentelemetry-api |
| Maintenance | Actively maintained 739 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 11,953,783 / month, #1,351 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended 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.8Programming Language :: Python :: 3.9 |
Evidence: opentelemetry_propagator_aws_xray-1.0.2-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 › “aws x-ray tracing”
- opentelemetry-propagator-aws-xrayInjects and extracts AWS X-Ray tracing context into OpenTelemetry…
- opentelemetry-sdk-extension-awsProvides OpenTelemetry SDK components to make distributed traces…
- aws-xray-sdkRecords and sends trace data from Python applications to AWS X-Ray…
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 aws-xray-sdk · opentelemetry-propagator-gcp · opentelemetry-sdk-extension-aws · opentelemetry-propagator-ot-trace · opentelemetry-propagator-jaeger · opentelemetry-propagator-b3 · opentelemetry-instrumentation-boto · opentelemetry-instrumentation-remoulade · azure-core-tracing-opentelemetry · opentelemetry-processor-baggage