Skip to main content

Mini Project: Access Log, Request IDs and Request Metrics

Learn Mini Project: Access Log, Request IDs and Request Metrics (Logging & Monitoring, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Mini Real-Time Project: Access Log, Request IDs and Request Metrics Problem Operations need one log line per request with a request id, and counters that show how many requests succeeded or failed per URL. Build it once with a filter and an interceptor instead of adding code to every controller. Requirements Give every request an id and put it in the MDC and in the response header. Log one access line per request after completion: method, path, status. Count requests per URL and status with Micrometer. Show a normal, a missing and a failing URL. Concepts Used MDC request id (filter) access log...

More lessons in Logging & Monitoring