Reputation: 5040
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
Upvotes: 2
Views: 1609
Reputation: 6893
It was removed in Sleuth 3.0, though it seems the docs were not updated, I'm going to update the docs soon.
To fix the rest with your logs, you can check the logging config here, the log integration in the docs and this answer.
Upvotes: 4