eclipse-vertx / vertx-tracing

Vertx integration with tracing libraries
Other
41 stars 34 forks source link

I want to print traceid spanid etc in the log but centralized vertx-zipkin has some questions #36

Closed zhaoqiang1024 closed 2 years ago

zhaoqiang1024 commented 2 years ago

Questions

I want to print traceid spanid etc in the log but centralized vertx-zipkin has some questions

Version

4.2.1

Context

In my project concentrated vertx-zipkin but in the log cannot enter traceId、spanId etc and when looking at the MDC context found that no corresponding variables are assigned to it.What do I do with this problem? or to offer a demo project?

Do you have a reproducer?

https://github.com/zhaoqiang1024/vertx.demo

Extra

sanyarnd commented 2 years ago

Use OpenTracingUtil.getSpan and put it in MDC yourself.