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
Close
Hashes for opentelemetry-propagator-aws-xray-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e8be667bbcf17c3d81d70b2a7cdec0b11257ff64d3829ffe75b810ba1b49f86 |
|
MD5 | e5acc5ccc3c5863d796e386c578d458b |
|
BLAKE2b-256 | 3213310a7f3c789eb9bb51f8ee9b88fb4b9f4f1e7191c8c96c7ea6f15eaa99b5 |
Close
Hashes for opentelemetry_propagator_aws_xray-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49267a1d72b3f04880ac75e24f9ef38fe323e2f3156c4531e0e00c71c0829c0f |
|
MD5 | 11215d19433c927a1a7586c0c794ac27 |
|
BLAKE2b-256 | 04242b1694b9452ac7ab3567dcb80902f7c5c8a39962751d5a4c54a357caa49e |