Run code on thread start


I would like to add workflow/activity info into the logback MDC. Ideally, I would intercept the thread creation and add the keys with the workflow id, activity id, etc.

Is this possible? Maybe with interceptors?


Yes, it can be done through interceptors. But I believe these are already injected into MDC.