feat:新增链路追踪
parent
c783f979d8
commit
ae42198a13
|
@ -52,6 +52,18 @@
|
|||
<artifactId>muyu-common-security</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Sleuth -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-sleuth</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Zipkin -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-zipkin</artifactId>
|
||||
<version>2.2.8.RELEASE</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -25,3 +25,11 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
#配置zipkin
|
||||
zipkin:
|
||||
base-url: http://127.0.0.1:9411
|
||||
# 不要让nacos把zipkin注册进去(可以不写)
|
||||
discovery-client-enabled: false
|
||||
sleuth:
|
||||
sampler:
|
||||
probability: 1.0
|
||||
|
|
|
@ -88,6 +88,19 @@
|
|||
<version>${swagger.fox.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Sleuth -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-sleuth</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Zipkin -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-zipkin</artifactId>
|
||||
<version>2.2.8.RELEASE</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -41,3 +41,11 @@ spring:
|
|||
groupId: DEFAULT_GROUP
|
||||
data-type: json
|
||||
rule-type: gw-flow
|
||||
#配置zipkin
|
||||
zipkin:
|
||||
base-url: http://127.0.0.1:9411
|
||||
# 不要让nacos把zipkin注册进去(可以不写)
|
||||
discovery-client-enabled: false
|
||||
sleuth:
|
||||
sampler:
|
||||
probability: 1.0
|
||||
|
|
|
@ -78,6 +78,18 @@
|
|||
<artifactId>muyu-common-swagger</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Sleuth -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-sleuth</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- SpringCloud Zipkin -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-zipkin</artifactId>
|
||||
<version>2.2.8.RELEASE</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
@ -25,6 +25,14 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
#配置zipkin
|
||||
zipkin:
|
||||
base-url: http://127.0.0.1:9411
|
||||
# 不要让nacos把zipkin注册进去(可以不写)
|
||||
discovery-client-enabled: false
|
||||
sleuth:
|
||||
sampler:
|
||||
probability: 1.0
|
||||
logging:
|
||||
level:
|
||||
com.ruoyi.system.mapper: DEBUG
|
||||
|
|
Loading…
Reference in New Issue