#484·disruptor

can not get mdc traceId

Author: LostZGCreated Sep 11, 2024Updated Sep 18, 2024

Describe the bug 131726045310_ pic it can be seen, http-nio-8881-exec-4 is my main thread,TaskMainSubExecutePool is the thread pool i started, they can both get the traceId in mdc, xcLogProducerThread is disruptor thread,but it can not get the traceId in mdc. what is the cause of this? or how do i troubleshoot this problem? thks!

Expected behavior can get mdc traceId

Desktop (please complete the following information):

  • OS: [mac os]
  • Version [13.5]
  • JVM Version [OpenJDK 1.8]