build.gradle.kts 774 B

1234567891011121314151617181920
  1. plugins {
  2. id("otel.library-instrumentation")
  3. }
  4. dependencies {
  5. implementation(project(":instrumentation-appender-api-internal"))
  6. implementation(project(":instrumentation-appender-sdk-internal"))
  7. library("org.apache.logging.log4j:log4j-core:2.16.0")
  8. testImplementation(project(":instrumentation-appender-sdk-internal"))
  9. testImplementation("io.opentelemetry:opentelemetry-sdk-logs")
  10. testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
  11. }
  12. tasks.withType<Test>().configureEach {
  13. // TODO run tests both with and without experimental log attributes
  14. jvmArgs("-Dotel.instrumentation.log4j-appender.experimental.capture-map-message-attributes=true")
  15. jvmArgs("-Dotel.instrumentation.log4j-appender.experimental.capture-context-data-attributes=*")
  16. }