Skip to content

Commit 7bbece7

Browse files
authored
Fix class not found due to OTel not supporting spring boot 4 yet (#4616)
1 parent fd38903 commit 7bbece7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

sentry-samples/sentry-samples-spring-boot-4/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ dependencies {
4747
implementation(libs.springboot4.starter.webflux)
4848
implementation(libs.springboot4.starter.websocket)
4949
implementation(libs.springboot4.starter.restclient)
50+
implementation(libs.springboot4.starter.webclient)
5051
implementation(Config.Libs.aspectj)
5152
implementation(Config.Libs.kotlinReflect)
5253
implementation(kotlin(Config.kotlinStdLib, KotlinCompilerVersion.VERSION))

sentry-spring-boot-4/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ dependencies {
8686
testImplementation(libs.okhttp.mockwebserver)
8787
testImplementation(libs.otel)
8888
testImplementation(libs.otel.extension.autoconfigure.spi)
89-
testImplementation(libs.springboot4.otel)
89+
/**
90+
* Adding a version of opentelemetry-spring-boot-starter that doesn't support Spring Boot 4 causes
91+
* java.lang.IllegalArgumentException: Could not find class [org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration]
92+
* https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/14363
93+
*/
94+
// testImplementation(libs.springboot4.otel)
9095
testImplementation(libs.springboot4.starter)
9196
testImplementation(libs.springboot4.starter.aop)
9297
testImplementation(libs.springboot4.starter.graphql)

0 commit comments

Comments
 (0)