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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e2cf932b8b4f3912b817d18973f16c3498b25bcfb6f03cac71b3f3b7175c191 |
|
MD5 | 0bb5bfc3c908e70781aaba4b27a3eebf |
|
BLAKE2b-256 | 6f687195e566bdae573650ca7b51b959d5563e5067fbfd87c89119bc0b0b939a |
Close
Hashes for opentelemetry_propagator_aws_xray-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9e104aca1d3da938f82a1c8ec926227634ea648c314946f812239954ba1950f |
|
MD5 | 29d792dbe5229b40731ba12509f4aa61 |
|
BLAKE2b-256 | 5f9e40805c509302438e3fe6e1ff3fc315ea7a66372f59384a2b2f6813588840 |