微服务之间调用链路跟踪依赖关系
zinkin服务端:
<dependency>
<groupId>io.zipkin.java</groupId>
<artifactId>zipkin-server</artifactId>
</dependency>
<dependency>
<groupId>io.zipkin.java</groupId>
<artifactId>zipkin-autoconfigure-ui</artifactId>
</dependency>
zinkin客户端,需要被监控的:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
spring:
application:
name: z02-service-hello
#zipkin
zipkin:
base-url: http://127.0.01:7901
enable: true
locator:
discovery:
enabled: true