More Contextual Logging in Java

Using Spring Boot Sleuth to overcome reactive Java’s thread free-for-all

Randal Kamradt Sr
Javarevisited
Published in
6 min readNov 15, 2021

--

Criss-crossing Threads
Image by HeungSoon from Pixabay

In a previous article, I was able to overcome reactive Java’s problem with maintaining context on a per-thread basis. The main issue is that reactive Java requests can be handled by different threads, so we can’t rely on the popular MDC facility of Java logging.

--

--