<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I am working on microservices stack and using correlation id (Unique request id) generated via nginx to log into each microservice logs. I am using MDC for extracting this from request header in OncePerRequestFilter in java.</div><div><br></div><div>One of the microservice then use java thread executor framework and then call other microservices.</div><div><br></div><div>Can using MDC with executor (java thread pool) mess up due to thread re use? Is it possible that I get either empty MDC context or incorrect context due to thread reuse?</div><div><br></div><div>I am referring below link where one such scenario is explained:</div><div><a href="http://ashtonkemerling.com/blog/2017/09/01/mdc-and-threadpools/">http://ashtonkemerling.com/blog/2017/09/01/mdc-and-threadpools/</a></div><div><br></div><div>A response is appreciated! Thanks<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Regards,<div>Kumar Saurabh</div></div></div></div></div>