plugins { id("otel.library-instrumentation") } dependencies { implementation(project(":instrumentation-appender-api-internal")) implementation(project(":instrumentation-appender-sdk-internal")) library("org.apache.logging.log4j:log4j-core:2.16.0") testImplementation(project(":instrumentation-appender-sdk-internal")) testImplementation("io.opentelemetry:opentelemetry-sdk-logs") testImplementation("io.opentelemetry:opentelemetry-sdk-testing") } tasks.withType().configureEach { // TODO run tests both with and without experimental log attributes jvmArgs("-Dotel.instrumentation.log4j-appender.experimental.capture-map-message-attributes=true") jvmArgs("-Dotel.instrumentation.log4j-appender.experimental.capture-context-data-attributes=*") }