X-Ray & distributed tracing
Trace request flow across services.
In a distributed, microservice, or serverless architecture, a single request touches many services, and a metric or log alone cannot show you where it slowed down or failed. AWS X-Ray provides the distributed tracing that fills that gap.
Tracing request flow
X-Ray traces a request as it flows across services — from API Gateway to Lambda to DynamoDB to a downstream call — recording the timing and status of each segment. The resulting service map and trace timeline show you exactly which hop added latency or threw an error, turning "the app is slow" into "the payment service’s database call is the bottleneck". You instrument your application with the X-Ray SDK (or use the ADOT/OpenTelemetry collector), and many AWS services integrate automatically. This end-to-end visibility is essential for operating distributed systems, where problems hide in the interactions between services rather than in any single component.
# A single request, traced across services (X-Ray service map + timeline):## API Gateway 12ms# └─ Lambda: checkout 45ms# ├─ DynamoDB: GetItem 8ms ✓# └─ payment-svc call 380ms ✗ (timeout) ← the bottleneck/error## The trace pinpoints WHERE latency and errors occur across the whole request,# which no single service's metrics or logs can show.
The three pillars together
Traces complete the observability picture: metrics tell you something is wrong (error rate up), logs give the detail (the exception), and traces show where in the distributed flow it happened (which service call). Together they let you detect, diagnose, and resolve issues quickly — the difference between minutes and hours of downtime. For a DevOps engineer, instrumenting services for tracing and correlating traces with metrics and logs is part of building operable systems, especially as architectures decompose into many small services and serverless functions where the interactions are where failures live. Modern practice increasingly uses OpenTelemetry (via AWS Distro for OpenTelemetry) so instrumentation is vendor-neutral and portable.