How to correlate log events in distributed Vertx system

后端 未结 4 1082
无人共我
无人共我 2021-01-04 20:40

while doing logs in the multiple module of vertx, it is a basic requirement that we should be able to correlate all the logs for a single request.

as vertx being asy

4条回答
  •  感情败类
    2021-01-04 21:22

    Use vertx-sync and a ThreadLocal for the correlation ID. (i.e., a "FiberLocal"). Works great for me.

提交回复
热议问题