Developer Tools
AWS X-Ray
AWS X-Ray records distributed traces across supported services and instrumented application code. It helps isolate latency and errors across retrieval, model invocation, agent tools, queues, and downstream APIs.
Key points
- Segments and subsegments represent service and in-process work
- Trace sampling controls overhead and retention volume
- Annotations are indexed for filtering while metadata is not indexed
When to use it
- Trace a multi-step RAG request from API to vector store and model
- Find the slow action in an agent tool chain
Exam tips
- Choose X-Ray for request traces and CloudWatch for broader metrics, logs, and alarms
- Do not record prompts, retrieved text, or secrets as trace annotations