Working with Python - AWS X-Ray

Working with Python

Note

X-Ray SDK/Daemon Maintenance Notice – On February 25th, 2026, the AWS X-Ray SDKs/Daemon will enter maintenance mode, where AWS will limit X-Ray SDK and Daemon releases to address security issues only. For more information on the support timeline, see X-Ray SDK and Daemon 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:

For more information, see Choosing between the AWS Distro for OpenTelemetry and X-Ray SDKs.