Skip to content

Commit fced9b4

Browse files
Improve wording of MultipleTracersFoundException
fixes gh-120
1 parent a054c61 commit fced9b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-cloud-sleuth-otel-autoconfigure/src/main/java/org/springframework/cloud/sleuth/autoconfig/otel/MultipleTracerAutoConfigurationsDetector.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
import org.springframework.context.annotation.Configuration;
2424

2525
/**
26-
* Detects if both OTel (this project) and autoconfiguration for Brave are both on the
27-
* classpath.
26+
* Detects if both OTel (this project) and Brave are on the classpath.
2827
*
2928
* @author Jonatan Ivanov
3029
* @since 1.0.0
@@ -44,9 +43,10 @@ void signalMultipleTracerAutoConfigurationsPresent() {
4443
static final class MultipleTracersFoundException extends RuntimeException {
4544

4645
MultipleTracersFoundException() {
47-
super("You have both Spring Cloud Sleuth OpenTelemetry (OTel) and Spring Cloud Sleuth Brave tracers on the "
46+
super("You have both OpenTelemetry (OTel) and Brave (probably from Spring Cloud Sleuth Brave) tracers on the "
4847
+ "classpath. Please exclude <org.springframework.cloud:spring-cloud-sleuth-brave> dependency from "
49-
+ "<org.springframework.cloud:spring-cloud-starter-sleuth>.");
48+
+ "<org.springframework.cloud:spring-cloud-starter-sleuth>. If the issue persist, please check the "
49+
+ "classpath, something brings in Brave that you need to exclude");
5050
}
5151

5252
}

0 commit comments

Comments
 (0)