Please tell me how to measure the latency of CloudFront and Lambda@Edge using AWS X-Ray
The issue
I am considering measuring the latency of a global serverless application.
Please tell me how to measure the latency of CloudFront and Lambda@Edge using AWS X-Ray.
The solution
As of May 2022, CloudFront and Lambda@Edge are not included in the list of services integrated with AWS X-Ray, so it is not possible to measure latency using AWS X-Ray
The following Lambda features are not supported by Lambda@Edge:
- Using AWS X-Ray
As an alternative, please consider measuring using the following metrics.
You can check the metrics for Lambda@Edge from the CloudFront console by going to 'Monitoring' → 'Lambda@Edge' → selecting the target Lambda@Edge function name.