Split out log4j appender (#4907)
This commit is contained in:
parent
c197b84029
commit
b01efec0fd
|
@ -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")
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
}
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue