How to set a request id to Fiber for logging purpose

28 views
Skip to first unread message

Neeraj Chauhan

unread,
Feb 27, 2018, 3:09:54 PM2/27/18
to quasar-pulsar-user
Hi, 
I am using MDC to keep a generated request id of each request for logging purpose. 
Now i started using Fiber and it does not print MDC value in log. How could we get it that to work with Fiber?

initial logs (not running in Fiber)
2018-02-28 01:14:28,969 INFO [http-nio-9095-exec-2] connector [ConnectorLogger.java:182] [4edb9dee-7868-4d68-a827-124110e95e57]

current logs (running in fiber)
2018-02-28 01:15:16,277 INFO [ForkJoinPool-default-fiber-pool-worker-1] connector [ConnectorLogger.java:131] [] successful execution in method: 

Thanks,
Neeraj
Reply all
Reply to author
Forward
0 new messages