[英]Spring Sleuth Do not generate Trace Id and span Id and not communicating with Zipkin server
[英]Java Spring Sleuth Zipkin - X-Span-Export not being displayed
小問題,因為我無法在我的日志中看到X-Span-Export 。
我有一個應用程序,它基於 Java,帶有 Springboot 2.4.2,帶有 Sleuth 和 Zipkin。
在我的 log4j2.xml 中,我配置了這樣的:
<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>
但是,在我的日志中,我只能看到:
2021-03-07 13:12:40.218 INFO [myservice,336a9463f46cf034,18bffe81e7500eae] 562 --- [or-http-epoll-4] ...
我期待看到“真”或“假”,例如[myservice,336a9463f46cf034,18bffe81e7500eae,true]
但是,它不在這里。
我可以知道是什么問題嗎?
謝謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.