Problem Statement
Which practice makes microservices incidents diagnosable across hops?
Explanation
A shared trace ID ties logs, metrics, and spans. You can see where latency accumulates and which hop failed.
Make the ID a first-class header and log it on every boundary. Sample smartly to keep cost under control.
Code Solution
SolutionRead Only
X-Correlation-Id: 7e1b... → carried across calls
