环境准备
以kafka的方式导入
property配置
# kafka集群地址
spring.kafka.bootstrap-servers=你的kafka地址
# kafka的topic,默认则为zipkin
spring.zipkin.kafka.topic=zzzzipkin
# 不配置则使用http
spring.zipkin.sender.type=kafka
pom配置
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>1.4.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth-zipkin</ar