Why X-Ray?

With AWS X-Ray, there are no upfront fees or commitments. You pay only for what you use, based on the number of traces recorded, retrieved and scanned. A trace represents a request to your application and may include multiple data points, such as for calls to other services and database access. X-Ray provides a minimum guaranteed trace size of 100 KB. Trace data is retained for 30 days from the time it is recorded at no additional cost.

AWS Pricing Calculator

Calculate your AWS X-Ray and architecture cost in a single estimate.

Create your custom estimate now

Additional charges

Example 1 – X-Ray tracing

If you have an application which receives 2,000 incoming requests per hour and you’re using a 10% sampling rate, then your cost would be calculated as follows:

Traces recorded
Traces recorded per month = 2,000 requests per hour x 24 hours x 31 days x 10% = 148,800 traces
Monthly traces recorded charges = 48,800 traces * €0.00000493 = €0.24
 
In addition, let’s assume you make 100 queries per day each scanning the last hour of data captured (200 traces) and retrieve the full trace data for 50 traces per query.
 
Traces retrieved and scanned
Traces scanned per month = 100 queries x 200 traces per hour x 31 days = 620,000 traces
Traces retrieved per month = 100 queries x 50 traces per query x 31 days = 155,000 traces
Total traces retrieved/scanned per month = 155,000 traces + 620,000 traces = 775,000 traces
Monthly traces retrieved and scanned charges = 0 traces * €0.00000049 = €0
 

In addition, let’s assume you have enabled X-Ray insights on any or all X-Ray groups.

X-Ray insights traces processed
Traces recorded per month = 2,000 requests per hour x 24 hours x 31 days x 10% = 148,800 traces
Monthly insights traces processed charges = 148,800 traces * €0.00000099 = €0.15

Your total cost per month for using AWS X-Ray equals €0.24 + €0.15 = €0.39.