MDC in streams #2571
Answered
by
garyrussell
oleksii-suprun
asked this question in
Q&A
MDC in streams
#2571
-
Does it make any sense to use MDC in streaming applications? If it does, what is the best place to initialize it? I want to attach some information to each log message from environment variables and from the message itself. |
Beta Was this translation helpful? Give feedback.
Answered by
garyrussell
Feb 6, 2023
Replies: 1 comment 3 replies
-
Depending on the topology, Kafka Streams can switch threads internally so MDC is pretty useless, except for extremely simple streams. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
oleksii-suprun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Depending on the topology, Kafka Streams can switch threads internally so MDC is pretty useless, except for extremely simple streams.