Please tell me how to measure the latency of CloudFront and Lambda@Edge using AWS X-Ray

Please tell me how to measure the latency of CloudFront and Lambda@Edge using AWS X-Ray

Clock Icon2024.11.27

日本語版はこちら

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

AWS official documentation

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.

2024-11-27_08h36_45

References

Share this article

facebook logohatena logotwitter logo

© Classmethod, Inc. All rights reserved.