Working with Python
Note
End-of-support notice – On February 25th, 2027, Amazon X-Ray will discontinue support for Amazon X-Ray SDKs and daemon. After February 25th, 2027, you will no longer receive updates or releases. For more information on the support timeline, see X-Ray SDK and daemon end of support timeline. We recommend to migrate to OpenTelemetry. For more information on migrating to OpenTelemetry, see Migrating from X-Ray instrumentation to OpenTelemetry instrumentation .
There are two ways to instrument your Python application to send traces to X-Ray:
-
Amazon Distro for OpenTelemetry Python – An Amazon distribution that provides a set of open source libraries for sending correlated metrics and traces to multiple Amazon monitoring solutions, including Amazon CloudWatch, Amazon X-Ray, and Amazon OpenSearch Service, via the Amazon Distro for OpenTelemetry Collector
. -
Amazon X-Ray SDK for Python – A set of libraries for generating and sending traces to X-Ray via the X-Ray daemon.
For more information, see Choosing between the Amazon Distro for OpenTelemetry and X-Ray SDKs.