I have an application written with spring 5 and reactor. I put in the subscriber context some information such as the user id.
Now I want to log this user id. I'm trying with MDC but if the request changes thread I lost the information. How can I resolve this question?
Is there a way to set the MDC so all log around the application, included external library, has the data I put in using the subscriber context?
I already tried what described here but and it works fine, but it doesn't solve my problem with the external library logs.
https://simonbasle.github.io/2018/02/contextual-logging-with-reactor-context-and-mdc/