> For the complete documentation index, see [llms.txt](https://huy312100.gitbook.io/software-development/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://huy312100.gitbook.io/software-development/cloud-service/aws/certificate/clf-c02/cloud-technology-and-services/cloud-monitoring/x-ray.md).

# X-Ray

• Debugging in Production, the good old way: • Test locally

• Add log statements everywhere • Re-deploy in production

• Log formats differ across applications and log analysis is hard.

• Debugging: one big monolith “easy”, distributed services “hard”

• No common views of your entire architecture

• Enter... AWS X-Ray!

### Visual analysis of our applications

<figure><img src="https://1722711354-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwNXdoUkfmcozr29fRrfb%2Fuploads%2F35qm8CxfqWXxIpzPopCO%2FScreenshot%202023-12-24%20at%2000.34.13.png?alt=media&amp;token=a535331f-227e-458d-af40-2716a05ddf6b" alt=""><figcaption></figcaption></figure>

### Advantages

• Troubleshooting performance (bottlenecks)

• Understand dependencies in a microservice architecture

• Pinpoint service issues

• Review request behavior

• Find errors and exceptions

• Are we meeting time SLA?

• Where I am throttled?

• Identify users that are impacted
