@@ -16,23 +16,32 @@ If you want to add a "`how-to`", send us a {github-code}[pull request].
1616[[how-to-set-up-sleuth-with-otel]]
1717== How to Set Up Sleuth with OpenTelemetry?
1818
19- Add the Sleuth starter, exlcude Brave and add OpenTelemetry dependency to the classpath.
19+ Add the Sleuth starter, exclude Brave and add OpenTelemetry dependency to the classpath.
2020
2121====
2222[source,xml,indent=0,subs="verbatim,attributes",role="primary"]
2323.Maven
2424----
2525 <dependencyManagement>
26- <dependencies>
27- <dependency>
28- <groupId>org.springframework.cloud</groupId>
29- <artifactId>spring-cloud-dependencies</artifactId>
30- <version>${release.train-version}</version>
31- <type>pom</type>
32- <scope>import</scope>
33- </dependency>
34- </dependencies>
35- </dependencyManagement>
26+ <dependencies>
27+ <dependency>
28+ <groupId>org.springframework.cloud</groupId>
29+ <artifactId>spring-cloud-dependencies</artifactId>
30+ <!-- Provide the latest stable Spring Cloud release train version (e.g. 2020.0.0) -->
31+ <version>${release.train.version}</version>
32+ <type>pom</type>
33+ <scope>import</scope>
34+ </dependency>
35+ <dependency>
36+ <groupId>org.springframework.cloud</groupId>
37+ <artifactId>spring-cloud-sleuth-otel-dependencies</artifactId>
38+ <!-- Provide the version of the Spring Cloud Sleuth OpenTelemetry project -->
39+ <version>${spring-cloud-sleuth-otel.version}</version>
40+ <scope>import</scope>
41+ <type>pom</type>
42+ </dependency>
43+ </dependencies>
44+ </dependencyManagement>
3645
3746 <dependency>
3847 <groupId>org.springframework.cloud</groupId>
@@ -77,16 +86,25 @@ Add the Sleuth starter, exclude Brave, add OTel and Zipkin to the classpath.
7786.Maven
7887----
7988 <dependencyManagement>
80- <dependencies>
81- <dependency>
82- <groupId>org.springframework.cloud</groupId>
83- <artifactId>spring-cloud-dependencies</artifactId>
84- <version>${release.train-version}</version>
85- <type>pom</type>
86- <scope>import</scope>
87- </dependency>
88- </dependencies>
89- </dependencyManagement>
89+ <dependencies>
90+ <dependency>
91+ <groupId>org.springframework.cloud</groupId>
92+ <artifactId>spring-cloud-dependencies</artifactId>
93+ <!-- Provide the latest stable Spring Cloud release train version (e.g. 2020.0.0) -->
94+ <version>${release.train.version}</version>
95+ <type>pom</type>
96+ <scope>import</scope>
97+ </dependency>
98+ <dependency>
99+ <groupId>org.springframework.cloud</groupId>
100+ <artifactId>spring-cloud-sleuth-otel-dependencies</artifactId>
101+ <!-- Provide the version of the Spring Cloud Sleuth OpenTelemetry project -->
102+ <version>${spring-cloud-sleuth-otel.version}</version>
103+ <scope>import</scope>
104+ <type>pom</type>
105+ </dependency>
106+ </dependencies>
107+ </dependencyManagement>
90108
91109 <dependency>
92110 <groupId>org.springframework.cloud</groupId>
@@ -139,16 +157,25 @@ If using Kafka, you must add the Kafka dependency.
139157.Maven
140158----
141159 <dependencyManagement>
142- <dependencies>
143- <dependency>
144- <groupId>org.springframework.cloud</groupId>
145- <artifactId>spring-cloud-dependencies</artifactId>
146- <version>${release.train-version}</version>
147- <type>pom</type>
148- <scope>import</scope>
149- </dependency>
150- </dependencies>
151- </dependencyManagement>
160+ <dependencies>
161+ <dependency>
162+ <groupId>org.springframework.cloud</groupId>
163+ <artifactId>spring-cloud-dependencies</artifactId>
164+ <!-- Provide the latest stable Spring Cloud release train version (e.g. 2020.0.0) -->
165+ <version>${release.train.version}</version>
166+ <type>pom</type>
167+ <scope>import</scope>
168+ </dependency>
169+ <dependency>
170+ <groupId>org.springframework.cloud</groupId>
171+ <artifactId>spring-cloud-sleuth-otel-dependencies</artifactId>
172+ <!-- Provide the version of the Spring Cloud Sleuth OpenTelemetry project -->
173+ <version>${spring-cloud-sleuth-otel.version}</version>
174+ <scope>import</scope>
175+ <type>pom</type>
176+ </dependency>
177+ </dependencies>
178+ </dependencyManagement>
152179
153180 <dependency>
154181 <groupId>org.springframework.cloud</groupId>
@@ -207,16 +234,25 @@ If you want Sleuth over RabbitMQ, add the `spring-cloud-sleuth-otel` (exclude `s
207234.Maven
208235----
209236 <dependencyManagement>
210- <dependencies>
211- <dependency>
212- <groupId>org.springframework.cloud</groupId>
213- <artifactId>spring-cloud-dependencies</artifactId>
214- <version>${release.train-version}</version>
215- <type>pom</type>
216- <scope>import</scope>
217- </dependency>
218- </dependencies>
219- </dependencyManagement>
237+ <dependencies>
238+ <dependency>
239+ <groupId>org.springframework.cloud</groupId>
240+ <artifactId>spring-cloud-dependencies</artifactId>
241+ <!-- Provide the latest stable Spring Cloud release train version (e.g. 2020.0.0) -->
242+ <version>${release.train.version}</version>
243+ <type>pom</type>
244+ <scope>import</scope>
245+ </dependency>
246+ <dependency>
247+ <groupId>org.springframework.cloud</groupId>
248+ <artifactId>spring-cloud-sleuth-otel-dependencies</artifactId>
249+ <!-- Provide the version of the Spring Cloud Sleuth OpenTelemetry project -->
250+ <version>${spring-cloud-sleuth-otel.version}</version>
251+ <scope>import</scope>
252+ <type>pom</type>
253+ </dependency>
254+ </dependencies>
255+ </dependencyManagement>
220256
221257 <dependency>
222258 <groupId>org.springframework.cloud</groupId>
@@ -256,16 +292,25 @@ If you want Sleuth over RabbitMQ, add the `spring-cloud-sleuth-otel` (exclude `s
256292.Maven
257293----
258294 <dependencyManagement>
259- <dependencies>
260- <dependency>
261- <groupId>org.springframework.cloud</groupId>
262- <artifactId>spring-cloud-dependencies</artifactId>
263- <version>${release.train-version}</version>
264- <type>pom</type>
265- <scope>import</scope>
266- </dependency>
267- </dependencies>
268- </dependencyManagement>
295+ <dependencies>
296+ <dependency>
297+ <groupId>org.springframework.cloud</groupId>
298+ <artifactId>spring-cloud-dependencies</artifactId>
299+ <!-- Provide the latest stable Spring Cloud release train version (e.g. 2020.0.0) -->
300+ <version>${release.train.version}</version>
301+ <type>pom</type>
302+ <scope>import</scope>
303+ </dependency>
304+ <dependency>
305+ <groupId>org.springframework.cloud</groupId>
306+ <artifactId>spring-cloud-sleuth-otel-dependencies</artifactId>
307+ <!-- Provide the version of the Spring Cloud Sleuth OpenTelemetry project -->
308+ <version>${spring-cloud-sleuth-otel.version}</version>
309+ <scope>import</scope>
310+ <type>pom</type>
311+ </dependency>
312+ </dependencies>
313+ </dependencyManagement>
269314
270315 <dependency>
271316 <groupId>org.springframework.cloud</groupId>
0 commit comments