即使 Zipkin 运行良好,Sleuth 也不会将跟踪信息发送到 Zipkin。我正在使用 Spring 1.5.8.RELEASE、spring cloud Dalston.SR4,并且在我的微服务中添加了以下依赖项:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
我的日志总是出错:[FOOMS,2e740f33c26e286d,2e740f33c26e286d,false]
我的 Zipkin 依赖项是:
<dependency>
<groupId>io.zipkin.java</groupId>
<artifactId>zipkin-server</artifactId>
</dependency>
<dependency>
<groupId>io.zipkin.java</groupId>
<artifactId>zipkin-autoconfigure-ui</artifactId>
<scope>runtime</scope>
</dependency>
为什么我在我的 slueth 陈述中变得虚假而不是真实?但是,为所有调用正确生成了 traceId 和 SpanId。我的 Zipkin 在端口 9411 中运行