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.0.tar.gz.

File metadata

  • Download URL: opentelemetry-propagator-aws-xray-1.0.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for opentelemetry-propagator-aws-xray-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2e2cf932b8b4f3912b817d18973f16c3498b25bcfb6f03cac71b3f3b7175c191
MD5 0bb5bfc3c908e70781aaba4b27a3eebf
BLAKE2b-256 6f687195e566bdae573650ca7b51b959d5563e5067fbfd87c89119bc0b0b939a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opentelemetry_propagator_aws_xray-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for opentelemetry_propagator_aws_xray-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9e104aca1d3da938f82a1c8ec926227634ea648c314946f812239954ba1950f
MD5 29d792dbe5229b40731ba12509f4aa61
BLAKE2b-256 5f9e40805c509302438e3fe6e1ff3fc315ea7a66372f59384a2b2f6813588840

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