Details
-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
None
-
None
-
None
Description
I need to log a few attributes of the request like the request id and the locale, but when using parallelStream, it seems that the ThreadLocal of the MDC looses the information.
Ive analyzed the solution of passing the MDC context between the threads when creating the parallelStream but it seems dirty and I also have a lot of usages of the parallelStream.
Is there any other way of doing this?
Thank you