# 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”&#x20;

• 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&#x26;token=a535331f-227e-458d-af40-2716a05ddf6b" alt=""><figcaption></figcaption></figure>

### Advantages

• Troubleshooting performance (bottlenecks)&#x20;

• Understand dependencies in a microservice architecture&#x20;

• Pinpoint service issues&#x20;

• Review request behavior&#x20;

• Find errors and exceptions&#x20;

• Are we meeting time SLA?&#x20;

• Where I am throttled?&#x20;

• Identify users that are impacted
