Reduce AWS X-Ray costs with these tips
Analyze and debug your applications
AWS X-Ray cost saving tips
Optimize your AWS X-Ray costs with these tips
Use Sampling
You can configure AWS X-Ray sampling to log a portion of your production traffic. This reduces tracing costs. You need to find a good balance between the sampling rate of your application to facilitate debugging.
Lambda Calls
If you are using AWS X-Ray inside Lambda functions, be aware that you need to factor in the calls to the AWS X-Ray API in your cost calculation. Lambda functions might run slightly longer if they need to access the X-Ray API. Consider using a VPC endpoint.
Consider Alternatives
One cost-effective way to debug your application is with Elastic APM. It also supports Open Telemetry, so you do not have any vendor lock in when you implement the solution. Depending on your budget you could either opt for Elastic Cloud or self-hosted.
Service information & pricing
About AWS X-Ray
- About AWS X-Ray
-
AWS X-Ray is a dev tool for analyzing, debugging apps, and tracing user requests. It helps identify issues and boost app performance. It allows real-time debug of serverless apps, monitors cloud metrics, provides a full view of requests, and various use cases. It also offers 100k free recorded traces monthly.
- AWS X-Ray pricing
-
AWS X-Ray's pricing depends on recorded, retrieved, & scanned traces. Monthly, first 100K recorded and 1M retrieved/scanned traces are free. Additional traces cost $0.000005/recorded, $0.0000005/retrieved or scanned. Each trace is min.100KB, stored for 30 days free. Estimations use request/API call & sampling rates.