build.gradle.kts 640 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("ch.qos.logback:logback-classic:0.9.16")
  8. testImplementation("io.opentelemetry:opentelemetry-sdk-logs")
  9. testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
  10. testImplementation("org.mockito:mockito-core")
  11. }
  12. tasks.withType<Test>().configureEach {
  13. // TODO run tests both with and without experimental log attributes
  14. jvmArgs("-Dotel.instrumentation.logback-appender.experimental.capture-mdc-attributes=*")
  15. }