System Design · Middle · Question 37 of 75
Why pass a request id / trace id from the frontend through to the backend?
- ✓Correct answer: To link a browser error to the logs and traces of every service
- 2So the server can cache responses by that id
- 3To limit the number of requests from a single user
Explanation
Distributed tracing (OpenTelemetry, the traceparent header) shows a request's path through the API gateway, services and DB. A user sends a screenshot with the error id - and you immediately find the full context.