Before we can use the AWS X-Ray service, your applications need to support collecting and publishing tracing information to the X-Ray service. The X-Ray software development kit (SDK) includes support for a variety of programming languages and popular application frameworks, including Python and Django, which both power the todobackend application.
You can locate the appropriate SDK documentation for your language of choice at https://aws.amazon.com/documentation/xray/, but for our use case, https://docs.aws.amazon.com/xray-sdk-for-python/latest/reference/frameworks.html provides the relevant information on how to configure Django to automatically create traces for each incoming request to your application.
In the todobackend repository, you first need to add the X-Ray SDK package to the src/requirements.txt file, which will...