Enable Play Instrumentation
MODIFY
dd-java-agent/instrumentation/play-2.4/src/latestDepTest/groovy/Play26Test.groovy
dd-java-agent/instrumentation/play-2.4/src/latestDepTest/groovy/Play26Test.groovy
@@ -8,10 +8,6 @@ import play.test.Helpers
import spock.lang.Shared
class Play26Test extends AgentTestRunner {
- static {
- System.setProperty("dd.integration.play.enabled", "true")
- }
-
@Shared
int port = TestUtils.randomOpenPort()
@Shared

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

MODIFY
dd-java-agent/instrumentation/play-2.4/src/test/groovy/Play24Test.groovy
dd-java-agent/instrumentation/play-2.4/src/test/groovy/Play24Test.groovy
@@ -8,10 +8,6 @@ import play.test.Helpers
import spock.lang.Shared
class Play24Test extends AgentTestRunner {
- static {
- System.setProperty("dd.integration.play.enabled", "true")
- }
-
@Shared
int port = TestUtils.randomOpenPort()
@Shared

Enable Play Instrumentation