opentelemetry-java-instrume.../instrumentation/hystrix-1.4/javaagent/hystrix-1.4-javaagent.gradle

27 lines
820 B
Groovy

apply from: "$rootDir/gradle/instrumentation.gradle"
muzzle {
pass {
group = "com.netflix.hystrix"
module = 'hystrix-core'
versions = "[1.4.0,)"
}
}
dependencies {
implementation project(':instrumentation:rxjava-1.0:library')
library group: 'com.netflix.hystrix', name: 'hystrix-core', version: '1.4.0'
library group: 'io.reactivex', name: 'rxjava', version: '1.0.7'
}
tasks.withType(Test) {
// TODO run tests both with and without experimental span attributes
jvmArgs "-Dotel.instrumentation.hystrix.experimental-span-attributes=true"
// Disable so failure testing below doesn't inadvertently change the behavior.
jvmArgs "-Dhystrix.command.default.circuitBreaker.enabled=false"
// Uncomment for debugging:
// jvmArgs "-Dhystrix.command.default.execution.timeout.enabled=false"
}