Skip to content

Commit 6f745e8

Browse files
author
Mateusz Rzeszutek
authored
Include OTel appenders in the Spring Starter (open-telemetry#8945)
1 parent 00d698e commit 6f745e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ dependencies {
2525
compileOnly("jakarta.servlet:jakarta.servlet-api:5.0.0")
2626
implementation(project(":instrumentation:spring:spring-webflux:spring-webflux-5.3:library"))
2727
implementation(project(":instrumentation:micrometer:micrometer-1.5:library"))
28+
implementation(project(":instrumentation:log4j:log4j-appender-2.17:library"))
29+
compileOnly("org.apache.logging.log4j:log4j-core:2.17.0")
30+
implementation(project(":instrumentation:logback:logback-appender-1.0:library"))
31+
compileOnly("ch.qos.logback:logback-classic:1.0.0")
2832

2933
library("org.springframework.kafka:spring-kafka:2.9.0")
3034
library("org.springframework.boot:spring-boot-starter-actuator:$springBootVersion")
@@ -41,10 +45,6 @@ dependencies {
4145
compileOnly("io.opentelemetry:opentelemetry-exporter-otlp")
4246
compileOnly("io.opentelemetry:opentelemetry-exporter-zipkin")
4347
compileOnly(project(":instrumentation-annotations"))
44-
compileOnly(project(":instrumentation:log4j:log4j-appender-2.17:library"))
45-
compileOnly("org.apache.logging.log4j:log4j-core:2.17.0")
46-
compileOnly(project(":instrumentation:logback:logback-appender-1.0:library"))
47-
compileOnly("ch.qos.logback:logback-classic:1.0.0")
4848

4949
compileOnly(project(":instrumentation:resources:library"))
5050
annotationProcessor("com.google.auto.service:auto-service")

0 commit comments

Comments
 (0)