Access MDC of main Thread in Async Tasks

Hi Team,
We are using 7.15.0-ee camunda version and springboot+slf4j. We are setting MDC values in our spring controllers which are invoking a workflow. These MDC values are getting carried to all Synchronous tasks as it runs on the main-thread of the request. But when we invoke a Async task , these MDC values are missing in AsyncTask’s execution. I understand that Camunda workflow Engine would span out a new thread and invoke this Async task. My question is : Is there a config/setting which we can set to copy MDC values to this async thread from main thread of execution ?

Thank you

Hi @Shirish_Kulkarni,

please have a look at the docs about configuring the MDC: Logging |

Hope this help, Ingo