【发布时间】:2017-12-06 09:31:36
【问题描述】:
即使 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,假]
我的 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 端口运行
【问题讨论】:
标签: java spring spring-boot zipkin spring-cloud-sleuth