- pom.xml
<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>
- bootstrap-dev.yml
spring:
sleuth:
sampler:
probability: 1
zipkin:
base-url: http://172.16.1.0:9411
- 访问地址
http://172.16.5.0:9411/zipkin