2021年3月7日星期日

Java Spring Sleuth Zipkin - X-Span-Export not being displayed

Small question as I am not able to see X-Span-Export in my logs please.

I have an app, which is Java based, with Springboot 2.4.2, with Sleuth and Zipkin.

In my log4j2.xml, I configured such:

    <Property name="LOG_PATTERN">              %d{MM-dd HH:mm:ss} %5p - [%10.10t] %-30.30c{1.} : [%X{X-B3-TraceId}, %X{X-B3-SpanId}, %X{X-Span-Export}] %m%n%ex      </Property>  

However, in my logs, I am only able to see:

2021-03-07 13:12:40.218  INFO [myservice,336a9463f46cf034,18bffe81e7500eae] 562 --- [or-http-epoll-4] ...  

I was expecting to see a "true" or "false", like [myservice,336a9463f46cf034,18bffe81e7500eae,true] however, it is not here.

May I know what is the issue please?

Thank you

https://stackoverflow.com/questions/66517644/java-spring-sleuth-zipkin-x-span-export-not-being-displayed March 07, 2021 at 10:33PM

没有评论:

发表评论