标签:toc zip local 依赖 日志 启动 浏览器 enc figure
yls
2020/5/6
<!--服务链路追踪 start-->
<!--zipkin start-->
<dependency>
<groupId>io.zipkin.java</groupId>
<artifactId>zipkin</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>io.zipkin.java</groupId>
<artifactId>zipkin-server</artifactId>
<version>2.10.1</version>
<!--排除日志-->
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-starter-log4j2</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.zipkin.java</groupId>
<artifactId>zipkin-autoconfigure-ui</artifactId>
<version>2.10.1</version>
</dependency>
<!--zipkin end-->
<!--服务链路追踪 end-->
@EnableZipkinServer
application.yml
management:
metrics:
web:
server:
auto-time-requests: false
server:
port: 9411
http://localhost:9411
,查看是否成功 <!--服务追踪客户端 start-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
<!--服务追踪客户端 end-->
application.yml
spring:
zipkin:
base-url: http://localhost:9411 #zipkin服务端的地址
http://localhost:9411
,查看是否服务追踪成功标签:toc zip local 依赖 日志 启动 浏览器 enc figure
原文地址:https://www.cnblogs.com/yloved/p/12835792.html