Correlation ID
Learn Correlation ID (Logging & Monitoring, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Correlation id is a unique value (often a UUID) attached to a request so every log line, across all classes and services, can be tied to that one request. Header : clients or gateways send it, commonly as X-Correlation-Id or X-Request-Id ; if it is missing, the server generates one. Flow : a filter reads or creates the id, puts it into MDC , adds it to the response header and removes it in a finally block.