全链路跟踪zipkin
参考博客:https://www.jianshu.com/p/f177a5e2917f
下载地址: https://dl.bintray.com/openzipkin/maven/io/zipkin/java/zipkin-server/2.12.9/
1导入jar包
<!--全链路跟踪 sleuth zipkin --> <dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
2.编写yml文件
spring: application:
name: cloud-consumer-order
zipkin:
base-url: http://localhost:9411 #zipkin服务器的地址
sleuth:
sampler:
probability: 1 #采样率介于0-1之间,1表示全局采样
3.测试查看访问地址: http://localhost:9411/zipkin/
以上是 全链路跟踪zipkin 的全部内容, 来源链接: utcz.com/z/515567.html