Skip to content

Commit 7cd8f97

Browse files
cmergenthalermarcingrzejszczak
authored andcommitted
doc: otlp specific exporter and remove unnecessary repos from pom (#157)
* Fix setup in docs by including otlp exporter * Revert "Fix setup in docs by including otlp exporter" This reverts commit 5217353. * Updated docs the right way * removed unwanted character * removed unwanted character
1 parent 6473beb commit 7cd8f97

File tree

3 files changed

+28
-235
lines changed

3 files changed

+28
-235
lines changed

README.adoc

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Add Spring Cloud Sleuth to the classpath of a Spring Boot application (together
3939
<dependency>
4040
<groupId>org.springframework.cloud</groupId>
4141
<artifactId>spring-cloud-sleuth-otel-dependencies</artifactId>
42-
<!-- Provide the version of the Spring Cloud Sleuth OpenTelemetry project -->
42+
<!-- Provide the version of the Spring Cloud Sleuth OpenTelemetry project (e.g. 1.1.2) -->
4343
<version>${spring-cloud-sleuth-otel.version}</version>
4444
<scope>import</scope>
4545
<type>pom</type>
@@ -69,32 +69,16 @@ Add Spring Cloud Sleuth to the classpath of a Spring Boot application (together
6969
<groupId>org.springframework.cloud</groupId>
7070
<artifactId>spring-cloud-sleuth-otel-autoconfigure</artifactId>
7171
</dependency>
72+
<!-- Add otlp specific exporter -->
73+
<dependency>
74+
<groupId>io.opentelemetry</groupId>
75+
<artifactId>opentelemetry-exporter-otlp</artifactId>
76+
</dependency>
7277
</dependencies>
73-
74-
<!-- You 'll need those to add OTel support -->
75-
<repositories>
76-
<repository>
77-
<id>spring-snapshots</id>
78-
<url>https://repo.spring.io/snapshot</url>
79-
<snapshots><enabled>true</enabled></snapshots>
80-
</repository>
81-
<repository>
82-
<id>spring-milestones</id>
83-
<url>https://repo.spring.io/milestone</url>
84-
</repository>
85-
</repositories>
86-
<pluginRepositories>
87-
<pluginRepository>
88-
<id>spring-snapshots</id>
89-
<url>https://repo.spring.io/snapshot</url>
90-
</pluginRepository>
91-
<pluginRepository>
92-
<id>spring-milestones</id>
93-
<url>https://repo.spring.io/milestone</url>
94-
</pluginRepository>
95-
</pluginRepositories>
9678
----
9779

80+
NOTE: Make sure to configure the otlp exporter's endpoint by settings `spring.otel.exporter.otlp.endpoint=http://collector-url:4317`.
81+
9882
Consider the following HTTP handler:
9983

10084
[source,java,indent=0]

docs/src/main/asciidoc/README.adoc

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Add Spring Cloud Sleuth to the classpath of a Spring Boot application (together
3232
<dependency>
3333
<groupId>org.springframework.cloud</groupId>
3434
<artifactId>spring-cloud-sleuth-otel-dependencies</artifactId>
35-
<!-- Provide the version of the Spring Cloud Sleuth OpenTelemetry project -->
35+
<!-- Provide the version of the Spring Cloud Sleuth OpenTelemetry project (e.g. 1.1.2) -->
3636
<version>${spring-cloud-sleuth-otel.version}</version>
3737
<scope>import</scope>
3838
<type>pom</type>
@@ -62,32 +62,16 @@ Add Spring Cloud Sleuth to the classpath of a Spring Boot application (together
6262
<groupId>org.springframework.cloud</groupId>
6363
<artifactId>spring-cloud-sleuth-otel-autoconfigure</artifactId>
6464
</dependency>
65+
<!-- Add otlp specific exporter -->
66+
<dependency>
67+
<groupId>io.opentelemetry</groupId>
68+
<artifactId>opentelemetry-exporter-otlp</artifactId>
69+
</dependency>
6570
</dependencies>
66-
67-
<!-- You 'll need those to add OTel support -->
68-
<repositories>
69-
<repository>
70-
<id>spring-snapshots</id>
71-
<url>https://repo.spring.io/snapshot</url>
72-
<snapshots><enabled>true</enabled></snapshots>
73-
</repository>
74-
<repository>
75-
<id>spring-milestones</id>
76-
<url>https://repo.spring.io/milestone</url>
77-
</repository>
78-
</repositories>
79-
<pluginRepositories>
80-
<pluginRepository>
81-
<id>spring-snapshots</id>
82-
<url>https://repo.spring.io/snapshot</url>
83-
</pluginRepository>
84-
<pluginRepository>
85-
<id>spring-milestones</id>
86-
<url>https://repo.spring.io/milestone</url>
87-
</pluginRepository>
88-
</pluginRepositories>
8971
----
9072

73+
NOTE: Make sure to configure the otlp exporter's endpoint by settings `spring.otel.exporter.otlp.endpoint=http://collector-url:4317`.
74+
9175
Consider the following HTTP handler:
9276

9377
[source,java,indent=0]

0 commit comments

Comments
 (0)