1,依赖
<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>
<version>2.2.8.RELEASE</version>
</dependency>
2,配置
sleuth:
sampler:
probability: 1.0
zipkin:
base-url: http://127.0.0.1:9411/
discovery-client-enabled: false