标签:framework frame als sam base zipkin exec oba maven2
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>
</dependency>
2.每个【微服务】加配置
spring:
zipkin:
base-url: http://tsca.cc:6500
# 不把该地址当做【微服务】
discoveryClientEnabled: false
sleuth:
sampler:
# 抽样率: 1.0=>100% 默认: 0.1=>10%
probability: 1.0
3.搭建 【zipkin】 面板
下载地址: https://repo1.maven.org/maven2/io/zipkin/zipkin-server/
java -Dserver.port=6500 -jar zipkin-server-2.16.2-exec.jar
标签:framework frame als sam base zipkin exec oba maven2
原文地址:https://blog.51cto.com/3168834/2453847