ActiveJ http and MDC/Thread local #265
Unanswered
Evgen1000end
asked this question in
Q&A
Replies: 1 comment
-
Hi, @Evgen1000end I have answered a similar question here. Hope that answers your question. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my typical web application (Spring MCV) i actively used MDC context and thread local variables to store traceId in them for use in logs,
for distributed traces, etc.
Now similar logic needs to be implemented in ActiveJ, but it seems that you can’t use thread local variables here (in fact, I have a single-threaded application with one event-loop).
What is the correct way to solve this problem?
Throw traceId through the context, through all the promises explicitly? Maybe there is some more generic way?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions