You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue here is, that MDC propagation is not currently happening, when Helidon Context is not prosent. I took a look into the code and could not find a reason, why it should not. This should be changed.
Environment Details
Problem Description
Current Behaviour:
Helidon MDC Context is not propagated when we use a async code activity like creating CompletableFuture or ExecutorService to executing code
Expected Behaviour:
Helidon MDC Context should be propagated when we use a async code activity like creating CompletableFuture or ExecutorService to executing code
Consistency: Above problem is consistent
Sample code:
ExecutorService newEs = Contexts.wrap(Executors.newSingleThreadExecutor()); CompletableFuture.runAsync(() -> LOGGER.info("Running on newES thread {}", HelidonMdc.get("foo")),newEs);
Steps to reproduce
Current Output:
Expected Output:
The text was updated successfully, but these errors were encountered: