From 6f745e8f5323b493936c50393685d316c0795ebd Mon Sep 17 00:00:00 2001 From: Mateusz Rzeszutek Date: Thu, 13 Jul 2023 14:56:56 +0200 Subject: [PATCH] Include OTel appenders in the Spring Starter (#8945) --- .../spring/spring-boot-autoconfigure/build.gradle.kts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts b/instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts index ce279dbc51..27283a684d 100644 --- a/instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts +++ b/instrumentation/spring/spring-boot-autoconfigure/build.gradle.kts @@ -25,6 +25,10 @@ dependencies { compileOnly("jakarta.servlet:jakarta.servlet-api:5.0.0") implementation(project(":instrumentation:spring:spring-webflux:spring-webflux-5.3:library")) implementation(project(":instrumentation:micrometer:micrometer-1.5:library")) + implementation(project(":instrumentation:log4j:log4j-appender-2.17:library")) + compileOnly("org.apache.logging.log4j:log4j-core:2.17.0") + implementation(project(":instrumentation:logback:logback-appender-1.0:library")) + compileOnly("ch.qos.logback:logback-classic:1.0.0") library("org.springframework.kafka:spring-kafka:2.9.0") library("org.springframework.boot:spring-boot-starter-actuator:$springBootVersion") @@ -41,10 +45,6 @@ dependencies { compileOnly("io.opentelemetry:opentelemetry-exporter-otlp") compileOnly("io.opentelemetry:opentelemetry-exporter-zipkin") compileOnly(project(":instrumentation-annotations")) - compileOnly(project(":instrumentation:log4j:log4j-appender-2.17:library")) - compileOnly("org.apache.logging.log4j:log4j-core:2.17.0") - compileOnly(project(":instrumentation:logback:logback-appender-1.0:library")) - compileOnly("ch.qos.logback:logback-classic:1.0.0") compileOnly(project(":instrumentation:resources:library")) annotationProcessor("com.google.auto.service:auto-service")