AWS X-Ray Propagator for OpenTelemetry
Project description
This library provides the propagator necessary to inject or extract a tracing context across AWS services.
Installation
pip install opentelemetry-propagator-aws-xray
Usage (AWS X-Ray Propagator)
NOTE: Because the parent context extracted from the X-Amzn-Trace-Id header assumes the context is _not_ sampled by default, users should make sure to add Sampled=1 to their X-Amzn-Trace-Id headers so that the child spans are sampled.
Use the provided AWS X-Ray Propagator to inject the necessary context into traces sent to external systems.
This can be done by either setting this environment variable:
export OTEL_PROPAGATORS = xray
Or by setting this propagator in your instrumented application:
from opentelemetry.propagate import set_global_textmap
from opentelemetry.propagators.aws import AwsXRayPropagator
set_global_textmap(AwsXRayPropagator())
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentelemetry_propagator_aws_xray-1.0.2.tar.gz.
File metadata
- Download URL: opentelemetry_propagator_aws_xray-1.0.2.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b2cee5479d2ef0172307b66ed2ed151f598a0fd29b3c01133ac87ca06326260
|
|
| MD5 |
696739d361c7ea09db772562733bfe96
|
|
| BLAKE2b-256 |
f43140004e9e55b1e5694ef3a7526f0b7637df44196fc68a8b7d248a3684680f
|
File details
Details for the file opentelemetry_propagator_aws_xray-1.0.2-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_propagator_aws_xray-1.0.2-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c99181ee228e99bddb638a0c911a297fa21f1c3a0af951f841e79919b5f1934
|
|
| MD5 |
d34bbc51b702a744841eed1387c54367
|
|
| BLAKE2b-256 |
ea89849a0847871fd9745315896ad9e23d6479db84d90b8b36c4c26dc46e92b8
|