Child threads of an unmanaged call back thread does not have MDC context and cannot be set neither #49794
Unanswered
zhihao-talkdesk
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently encounter this issue that, I am using SpeechRecognizer of
microsoft.cognitiveservices.speech
to help me to recognize voice, and the call back thread of it is an unmanaged thread (Thread-xxxxx). I am able to reset MDC context to this thread, however, I am not able to pass to or set MDC for the child threads going fowardcode example:
I also try to used MangedExecutor, still not working
I have also tried wrap the code block in
vertx.runOnContext
or threadContext.contextualRunnable suggested by chatgpt. But none of them works
Appreciate for any advice. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions