AWS · Developer Tools
AWS X-Ray
Distributed tracing that follows requests through your services, showing latency, errors and dependencies in a service map.
What it is and what problem it solves
AWS X-Ray collects data about the requests your application serves and shows how each request travels through services such as API Gateway, Lambda, ECS, EC2 and DynamoDB. Traces break a request into segments with timings and errors, and the service map shows dependencies and where latency and faults come from. AWS documents migrating instrumentation from X-Ray SDKs to OpenTelemetry; traces appear in CloudWatch's application monitoring views.
When to use it
- Microservice and serverless applications where a slow request crosses many components.
- Finding which downstream call causes errors or latency.
When to avoid it
- Single-component applications, where CloudWatch logs and metrics already show what is slow.
- Auditing who called AWS APIs: CloudTrail.
Cost model
What you pay for
Billed per trace recorded and per trace retrieved or scanned, beyond a monthly free tier.
Where it is cost-efficient
Sampling a small percentage of requests, which is usually enough to find patterns.
Where costs grow
Tracing every request on very high-traffic services.
Cost controls and common surprises
Use sampling rules and focus on critical paths.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
Encryption of trace data, IAM permissions for sending and reading traces.
What you configure
Avoid putting sensitive data in trace annotations and metadata.
Logging and monitoring
CloudTrail for API calls.
Related security services
CloudWatch, IAM, KMS.
Shared responsibility
AWS stores and visualises traces. You instrument your code and control what it records.
Common service combinations
API Gateway and Lambda active tracing, OpenTelemetry collectors on ECS and EKS, CloudWatch dashboards.
Business application examples
- A team finds that 80 percent of checkout latency comes from one slow third-party call.
Exam cues and common confusions
- Trace requests across services, find bottlenecks, service map: X-Ray.
- Metrics and logs: CloudWatch. API audit: CloudTrail.
Related
Courses and lessons
- Monitoring and limits: CloudWatch, X-Ray, Health, service quotas and throttling · AWS Solutions Architect – Associate (SAA-C03) · Members
Services, comparisons and patterns
- Amazon CloudWatch · Service
- AWS Lambda · Service
- Amazon API Gateway · Service
- Amazon Managed Grafana · Service
Sources
Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.