Make spymemcached instrumentation disabled by default
MODIFY
dd-java-agent/instrumentation/spymemcached-2.12/src/main/java/datadog/trace/instrumentation/spymemcached/MemcachedClientInstrumentation.java
dd-java-agent/instrumentation/spymemcached-2.12/src/main/java/datadog/trace/instrumentation/spymemcached/MemcachedClientInstrumentation.java
@@ -82,6 +82,11 @@ public final class MemcachedClientInstrumentation extends Instrumenter.Configura
.asDecorator();
}
+ @Override
+ protected boolean defaultEnabled() {
+ return false;
+ }
+
public static class AsyncOperationAdvice {
@Advice.OnMethodEnter(suppress = Throwable.class)

MODIFY
dd-java-agent/instrumentation/spymemcached-2.12/src/test/groovy/datadog/trace/instrumentation/spymemcached/SpymemcachedTest.groovy
dd-java-agent/instrumentation/spymemcached-2.12/src/test/groovy/datadog/trace/instrumentation/spymemcached/SpymemcachedTest.groovy
@@ -32,6 +32,10 @@ import static net.spy.memcached.ConnectionFactoryBuilder.Protocol.BINARY
class SpymemcachedTest extends AgentTestRunner {
+ static {
+ System.setProperty("dd.integration.spymemcached.enabled", "true")
+ }
+
@Shared
def parentOperation = "parent-span"
@Shared

Make spymemcached instrumentation disabled by default