Make spymemcached instrumentation disabled by default

This commit is contained in:
Nikolay Martynov 2018-06-15 14:21:16 -04:00
parent 1e4c88ffcb
commit 0e62ee8ec6
2 changed files with 9 additions and 0 deletions

View File

@ -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)

View File

@ -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