Manages execution to ensure that the given MDC context are set correctly in the current thread.
Manages execution to ensure that the given MDC context are set correctly in the current thread. Actual execution is performed by a delegate ExecutionContext.
slf4j provides a MDC Mapped Diagnostic Context based on a ThreadLocal.
slf4j provides a MDC Mapped Diagnostic Context based on a ThreadLocal. In an asynchronous environment, the callbacks can be called in another thread, where the local thread variable does not exist anymore.
This execution context fixes this problem: it propagates the MDC from the caller's thread to the callee's one.