advancedProduction Logging & Observability
What is MDC (Mapped Diagnostic Context) and how do you use it to attach a request ID to every log line for a request?
Tests whether you know how to thread a correlation ID through every log statement without passing it as a parameter everywhere.
This is a Pro question
Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.
What is MDC (Mapped Diagnostic Context) and how do you use it to attach a request ID to every log line for a request?