Skip to content

Commit c96d1cb

Browse files
authored
Merge pull request #73346 from Incarnation-p-lee/master
Update dependencies of distributed tracing.
2 parents 47e7e04 + 1921033 commit c96d1cb

File tree

1 file changed

+52
-19
lines changed

1 file changed

+52
-19
lines changed

articles/spring-cloud/how-to-distributed-tracing.md

Lines changed: 52 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Add the following settings to the configuration source that will be used when th
7777
2. If you want to see tracing spans sent between the Eureka server, the Configuration server, and user apps: set `management.tracing.egressIgnorePattern` to "/api/v2/spans|/v2/apps/.*/permissions|/eureka/.*|/oauth/.*".
7878

7979
For example, *appsettings.json* would include the following properties:
80-
80+
8181
```json
8282
"management": {
8383
"tracing": {
@@ -114,25 +114,58 @@ To follow these procedures, you need an Azure Spring Cloud service that is alrea
114114

115115
1. Skip this step if you followed our [guide to preparing an Azure Spring Cloud application](how-to-prepare-app-deployment.md). Otherwise, go to your local development environment and edit your pom.xml file to include the following Spring Cloud Sleuth dependency:
116116

117-
```xml
118-
<dependencyManagement>
119-
<dependencies>
117+
* Spring boot version < 2.4.x.
118+
119+
```xml
120+
<dependencyManagement>
121+
<dependencies>
122+
<dependency>
123+
<groupId>org.springframework.cloud</groupId>
124+
<artifactId>spring-cloud-sleuth</artifactId>
125+
<version>${spring-cloud-sleuth.version}</version>
126+
<type>pom</type>
127+
<scope>import</scope>
128+
</dependency>
129+
</dependencies>
130+
</dependencyManagement>
131+
<dependencies>
132+
<dependency>
133+
<groupId>org.springframework.cloud</groupId>
134+
<artifactId>spring-cloud-starter-sleuth</artifactId>
135+
</dependency>
136+
<dependency>
137+
<groupId>org.springframework.cloud</groupId>
138+
<artifactId>spring-cloud-starter-zipkin</artifactId>
139+
</dependency>
140+
</dependencies>
141+
```
142+
143+
* Spring boot version >= 2.4.x.
144+
145+
```xml
146+
<dependencyManagement>
147+
<dependencies>
120148
<dependency>
121-
<groupId>org.springframework.cloud</groupId>
122-
<artifactId>spring-cloud-sleuth</artifactId>
123-
<version>${spring-cloud-sleuth.version}</version>
124-
<type>pom</type>
125-
<scope>import</scope>
126-
</dependency>
127-
</dependencies>
128-
</dependencyManagement>
129-
<dependencies>
130-
<dependency>
131-
<groupId>org.springframework.cloud</groupId>
132-
<artifactId>spring-cloud-starter-sleuth</artifactId>
133-
</dependency>
134-
</dependencies>
135-
```
149+
<groupId>org.springframework.cloud</groupId>
150+
<artifactId>spring-cloud-sleuth</artifactId>
151+
<version>${spring-cloud-sleuth.version}</version>
152+
<type>pom</type>
153+
<scope>import</scope>
154+
</dependency>
155+
</dependencies>
156+
</dependencyManagement>
157+
<dependencies>
158+
<dependency>
159+
<groupId>org.springframework.cloud</groupId>
160+
<artifactId>spring-cloud-starter-sleuth</artifactId>
161+
</dependency>
162+
<dependency>
163+
<groupId>org.springframework.cloud</groupId>
164+
<artifactId>spring-cloud-sleuth-zipkin</artifactId>
165+
</dependency>
166+
</dependencies>
167+
```
168+
136169

137170
1. Build and deploy again for your Azure Spring Cloud service to reflect these changes.
138171

0 commit comments

Comments
 (0)