build.gradle.kts 1021 B

1234567891011121314151617181920212223242526272829303132
  1. plugins {
  2. id("otel.javaagent-instrumentation")
  3. }
  4. muzzle {
  5. pass {
  6. group.set("com.netflix.hystrix")
  7. module.set("hystrix-core")
  8. versions.set("[1.4.0,)")
  9. }
  10. }
  11. dependencies {
  12. compileOnly("com.google.auto.value:auto-value-annotations")
  13. annotationProcessor("com.google.auto.value:auto-value")
  14. implementation(project(":instrumentation:rxjava:rxjava-1.0:library"))
  15. library("com.netflix.hystrix:hystrix-core:1.4.0")
  16. library("io.reactivex:rxjava:1.0.7")
  17. }
  18. tasks.withType<Test>().configureEach {
  19. // TODO run tests both with and without experimental span attributes
  20. jvmArgs("-Dotel.instrumentation.hystrix.experimental-span-attributes=true")
  21. // Disable so failure testing below doesn't inadvertently change the behavior.
  22. jvmArgs("-Dhystrix.command.default.circuitBreaker.enabled=false")
  23. jvmArgs("-Dio.opentelemetry.javaagent.shaded.io.opentelemetry.context.enableStrictContext=false")
  24. // Uncomment for debugging:
  25. // jvmArgs("-Dhystrix.command.default.execution.timeout.enabled=false")
  26. }