Enable Lettuce instrumentation by default
MODIFY
dd-java-agent/instrumentation/lettuce-5/src/main/java/datadog/trace/instrumentation/lettuce/LettuceAsyncCommandsInstrumentation.java
dd-java-agent/instrumentation/lettuce-5/src/main/java/datadog/trace/instrumentation/lettuce/LettuceAsyncCommandsInstrumentation.java
@@ -16,11 +16,6 @@ public class LettuceAsyncCommandsInstrumentation extends Instrumenter.Default {
super("lettuce", "lettuce-5-async");
}
- @Override
- protected boolean defaultEnabled() {
- return false;
- }
-
@Override
public ElementMatcher typeMatcher() {
return named("io.lettuce.core.AbstractRedisAsyncCommands");

MODIFY
dd-java-agent/instrumentation/lettuce-5/src/main/java/datadog/trace/instrumentation/lettuce/LettuceClientInstrumentation.java
dd-java-agent/instrumentation/lettuce-5/src/main/java/datadog/trace/instrumentation/lettuce/LettuceClientInstrumentation.java
@@ -23,11 +23,6 @@ public final class LettuceClientInstrumentation extends Instrumenter.Default {
super("lettuce");
}
- @Override
- protected boolean defaultEnabled() {
- return false;
- }
-
@Override
public ElementMatcher typeMatcher() {
return named("io.lettuce.core.RedisClient");

MODIFY
dd-java-agent/instrumentation/lettuce-5/src/main/java/datadog/trace/instrumentation/lettuce/LettuceReactiveCommandsInstrumentation.java
dd-java-agent/instrumentation/lettuce-5/src/main/java/datadog/trace/instrumentation/lettuce/LettuceReactiveCommandsInstrumentation.java
@@ -18,11 +18,6 @@ public class LettuceReactiveCommandsInstrumentation extends Instrumenter.Default
super("lettuce", "lettuce-5-rx");
}
- @Override
- protected boolean defaultEnabled() {
- return false;
- }
-
@Override
public ElementMatcher typeMatcher() {
return named("io.lettuce.core.AbstractRedisReactiveCommands");

MODIFY
dd-java-agent/instrumentation/lettuce-5/src/test/groovy/LettuceAsyncClientTest.groovy
dd-java-agent/instrumentation/lettuce-5/src/test/groovy/LettuceAsyncClientTest.groovy
@@ -27,11 +27,6 @@ import static datadog.trace.agent.test.ListWriterAssert.assertTraces
import static datadog.trace.instrumentation.lettuce.LettuceInstrumentationUtil.AGENT_CRASHING_COMMAND_PREFIX
class LettuceAsyncClientTest extends AgentTestRunner {
-
- static {
- System.setProperty("dd.integration.lettuce.enabled", "true")
- }
-
public static final String HOST = "127.0.0.1"
public static final int PORT = TestUtils.randomOpenPort()
public static final int INCORRECT_PORT = TestUtils.randomOpenPort()

MODIFY
dd-java-agent/instrumentation/lettuce-5/src/test/groovy/LettuceReactiveClientTest.groovy
dd-java-agent/instrumentation/lettuce-5/src/test/groovy/LettuceReactiveClientTest.groovy
@@ -14,11 +14,6 @@ import static datadog.trace.agent.test.ListWriterAssert.assertTraces
import static datadog.trace.instrumentation.lettuce.LettuceInstrumentationUtil.AGENT_CRASHING_COMMAND_PREFIX
class LettuceReactiveClientTest extends AgentTestRunner {
-
- static {
- System.setProperty("dd.integration.lettuce.enabled", "true")
- }
-
public static final String HOST = "127.0.0.1"
public static final int PORT = TestUtils.randomOpenPort()
public static final int DB_INDEX = 0

MODIFY
dd-java-agent/instrumentation/lettuce-5/src/test/groovy/LettuceSyncClientTest.groovy
dd-java-agent/instrumentation/lettuce-5/src/test/groovy/LettuceSyncClientTest.groovy
@@ -14,11 +14,6 @@ import static datadog.trace.agent.test.ListWriterAssert.assertTraces
import static datadog.trace.instrumentation.lettuce.LettuceInstrumentationUtil.AGENT_CRASHING_COMMAND_PREFIX
class LettuceSyncClientTest extends AgentTestRunner {
-
- static {
- System.setProperty("dd.integration.lettuce.enabled", "true")
- }
-
public static final String HOST = "127.0.0.1"
public static final int PORT = TestUtils.randomOpenPort()
public static final int INCORRECT_PORT = TestUtils.randomOpenPort()

Enable Lettuce instrumentation by default