Split out log4j appender (#4907)

This commit is contained in:
Trask Stalnaker 2021-12-15 10:02:40 -08:00 committed by GitHub
parent c197b84029
commit b01efec0fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 14 additions and 5 deletions

View File

@ -3,8 +3,6 @@ plugins {
}
dependencies {
compileOnly("io.opentelemetry:opentelemetry-sdk-logs")
library("org.apache.logging.log4j:log4j-core:2.13.2")
// Library instrumentation cannot be applied to 2.13.2 due to a bug in Log4J. The agent works
@ -12,7 +10,4 @@ dependencies {
testLibrary("org.apache.logging.log4j:log4j-core:2.13.3")
testImplementation(project(":instrumentation:log4j:log4j-2-common:testing"))
testImplementation("io.opentelemetry:opentelemetry-sdk-logs")
testImplementation("org.mockito:mockito-core")
}

View File

@ -0,0 +1,13 @@
plugins {
id("otel.library-instrumentation")
}
dependencies {
compileOnly("io.opentelemetry:opentelemetry-sdk-logs")
library("org.apache.logging.log4j:log4j-core:2.13.2")
testImplementation("io.opentelemetry:opentelemetry-sdk-logs")
testImplementation("org.mockito:mockito-core")
}

View File

@ -266,6 +266,7 @@ include(":instrumentation:liberty:liberty-dispatcher:javaagent")
include(":instrumentation:log4j:log4j-1.2:javaagent")
include(":instrumentation:log4j:log4j-2.7:javaagent")
include(":instrumentation:log4j:log4j-2.13.2:javaagent")
include(":instrumentation:log4j:log4j-2.13.2:library")
include(":instrumentation:log4j:log4j-2.13.2:library-autoconfigure")
include(":instrumentation:log4j:log4j-2-common:testing")
include(":instrumentation:logback-1.0:javaagent")