~/talk

Correlated Logs in Spring Apps with Reactive Parts

slides:none on file

Reactive requests that lose MDC correlation are fixed by plugging in a context-propagation layer: add Reactor 3.5 context-propagation, register a ThreadLocalAccessor that reads/writes the MDC CID, and enable the automatic propagation Hook so WebClient callbacks and blocked results restore MDC across thread boundaries. A demo converts Spring Boot 3 MVC to WebFlux, shows the missing CID reappearing in the downstream log, and shows you can instead add the Micrometer tracing bridge to get TraceID/SpanID without custom code.

AI-written summary · about

  1. 0:00Introduction to reactive logging
  2. 1:28MDC and correlation IDs
  3. 4:15Problem with reactive logging
  4. 6:23Context propagation solution
  5. 9:17Demo with context propagation
  6. 10:21Configuring thread-local accessor
  7. 12:04Reactive endpoints in MVC
  8. 12:46Converting to WebFlux
  9. 15:17Boilerplate reduction with Micrometer
  10. 16:43Micrometer tracing integration
  11. 18:32Final demo with tracing
  12. 19:15Summary and recommendations
  13. 20:19Resources and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.