Enable Hystrix
MODIFY
dd-java-agent/instrumentation/hystrix-1.4/src/main/java/datadog/trace/instrumentation/hystrix/HystrixCommandInstrumentation.java
dd-java-agent/instrumentation/hystrix-1.4/src/main/java/datadog/trace/instrumentation/hystrix/HystrixCommandInstrumentation.java
@@ -27,11 +27,6 @@ public class HystrixCommandInstrumentation extends Instrumenter.Configurable {
super("hystrix");
}
- @Override
- protected boolean defaultEnabled() {
- return false;
- }
-
@Override
public AgentBuilder apply(final AgentBuilder agentBuilder) {
return agentBuilder

MODIFY
dd-java-agent/instrumentation/hystrix-1.4/src/main/java/datadog/trace/instrumentation/hystrix/HystrixThreadPoolInstrumentation.java
dd-java-agent/instrumentation/hystrix-1.4/src/main/java/datadog/trace/instrumentation/hystrix/HystrixThreadPoolInstrumentation.java
@@ -22,11 +22,6 @@ public class HystrixThreadPoolInstrumentation extends Instrumenter.Configurable
super("hystrix");
}
- @Override
- protected boolean defaultEnabled() {
- return false;
- }
-
@Override
public AgentBuilder apply(final AgentBuilder agentBuilder) {
return agentBuilder

MODIFY
dd-java-agent/instrumentation/hystrix-1.4/src/test/groovy/HystrixTest.groovy
dd-java-agent/instrumentation/hystrix-1.4/src/test/groovy/HystrixTest.groovy
@@ -10,11 +10,10 @@ import static datadog.trace.agent.test.ListWriterAssert.assertTraces
import static datadog.trace.agent.test.TestUtils.runUnderTrace
class HystrixTest extends AgentTestRunner {
- static {
- System.setProperty("dd.integration.hystrix.enabled", "true")
// Uncomment for debugging:
+ // static {
// System.setProperty("hystrix.command.default.execution.timeout.enabled", "false")
- }
+ // }
def "test command #action"() {
setup:

Enable Hystrix