瀏覽代碼

添加zipkin依赖

my-csc-config-file.git 5 年之前
父節點
當前提交
3e1e3527b2
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      pom.xml

+ 10 - 2
pom.xml

@@ -26,13 +26,21 @@
26
             <version>1.0-SNAPSHOT</version>
26
             <version>1.0-SNAPSHOT</version>
27
             <!-- <scope>compile</scope>-->
27
             <!-- <scope>compile</scope>-->
28
         </dependency>
28
         </dependency>
29
-
30
-
31
         <!--spring cloud-->
29
         <!--spring cloud-->
32
         <dependency>
30
         <dependency>
33
             <groupId>org.springframework.cloud</groupId>
31
             <groupId>org.springframework.cloud</groupId>
34
             <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
32
             <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
35
         </dependency>
33
         </dependency>
34
+        <!--链路追踪-->
35
+        <dependency>
36
+            <groupId>org.springframework.cloud</groupId>
37
+            <artifactId>spring-cloud-starter-sleuth</artifactId>
38
+        </dependency>
39
+        <!--zipkin依赖-->
40
+        <dependency>
41
+            <groupId>org.springframework.cloud</groupId>
42
+            <artifactId>spring-cloud-starter-zipkin</artifactId>
43
+        </dependency>
36
         <dependency>
44
         <dependency>
37
             <groupId>org.springframework.cloud</groupId>
45
             <groupId>org.springframework.cloud</groupId>
38
             <artifactId>spring-cloud-starter-config</artifactId>
46
             <artifactId>spring-cloud-starter-config</artifactId>