News for hackers. Stuff that matters.
Re:Discussion: structured, leveled logging by wsargent on Sunday September 11, 2022 @08:06PM (#32804450)
MDC/NDC only reliably works when you don't have asynchronous code (Akka/Vert.x/CompletionStage) through your application. As soon as you start using multiple threads, it becomes significantly more complex to keep MDC context carried over from one thread to the next.
Re:Discussion: structured, leveled logging by kaba0 on Monday September 12, 2022 @03:32AM (#32807151)
Well, that has more to do with reactive programming not playing by the rules. Once Loom arrives with Extent-Local scopes it will solve it very well.