Micronaut 4.6.6 context propagation issue with project reactor #11346
Unanswered
SushmaReddyLoka
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@dstepanov any idea? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We upgraded to micronaut 4.6.6 and are seeing similar issue with project reactor calls, we have logs in doOnSuccess and context is missing in them. Also after switching back from reactor thread to default-nioEventLoopGroup-xx, the context which was originally set on default-nioEventLoopGroup-xx is also lost.
First we upgraded to 4.6.6 and observed that MDC.getCopyOfContextMap() was returning null altogether so we went ahead and added implementation("io.micrometer:context-propagation"), now we don't see NPE as MDC is having PropagationContext in it, but the rest of context is still lost.
We have been extending reactor.core.CoreSubscriber, and copying the currentContext() to MDC so far for context propogation.
Beta Was this translation helpful? Give feedback.
All reactions