Skip to main content

AWS X-Ray Propagator for OpenTelemetry

Project description

pypi

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


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

File details

Details for the file opentelemetry_propagator_aws_xray-1.0.2.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_propagator_aws_xray-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6b2cee5479d2ef0172307b66ed2ed151f598a0fd29b3c01133ac87ca06326260
MD5 696739d361c7ea09db772562733bfe96
BLAKE2b-256 f43140004e9e55b1e5694ef3a7526f0b7637df44196fc68a8b7d248a3684680f

See more details on using hashes here.

File details

Details for the file opentelemetry_propagator_aws_xray-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_propagator_aws_xray-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c99181ee228e99bddb638a0c911a297fa21f1c3a0af951f841e79919b5f1934
MD5 d34bbc51b702a744841eed1387c54367
BLAKE2b-256 ea89849a0847871fd9745315896ad9e23d6479db84d90b8b36c4c26dc46e92b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page