AWS X-Ray is an AWS-managed service that allows you to track incoming and outgoing requests that your Lambda functions are issuing. It collects that information in segments and uses metadata to record additional data to help you debug, analyze, and optimize your function.
To get started, enable active tracing from the Lambda function's configuration page:
The following IAM policy is required to make the Lambda function publish ...