spring-cloud-sleuth 三个微服务之一在添加依赖项后不在日志中显示 spanid 和令牌 ID

spring-cloud-sleuth one of the microserives out of three does not show the spanid, and token id in logs after adding dependency

我正在使用 http://cloud.spring.io/spring-cloud-sleuth/spring-cloud-sleuth.html#_adding_to_the_project 添加 Spring Cloud Sleuth 而无需 Zipkin 集成

但是在三个微服务中的一个中,does not show the spanid, and token id in logs 在为所有服务添加依赖项之后(所有服务都是 http 请求服务,尽管还有一些服务需要 JMS - 我需要在这些服务上工作) )

服务 1

2016-06-05 17:12:45.404  INFO [my-service1-id,73b62c0f90d11e06,73b62c0f90d11e06,false] 85184 --- [nio-8080-exec-1] com.example.MyService1MakingARequest 

服务 2

2016-06-05 17:12:45.404  INFO 85185 --- [nio-8080-exec-1] com.example.MyService2MakingARequest 

服务 3

2016-06-05 17:12:45.404  INFO [my-service3-id,73b62c0f90d11e06,73b62c0f90d11e06,false] 85185 --- [nio-8080-exec-1] com.example.MyService3MakingARequest 

请高手指点,在Service2中可以做些什么,看看效果

最好的办法是展示您的示例项目。另一个是检查您是否没有自定义 logback.xml 或任何其他类型的日志记录配置会破坏当前设置(很可能是因为我可以看到模式不同)。