Make matchers more strict
MODIFY
dd-java-agent/instrumentation/jedis-1.4/src/main/java/datadog/trace/instrumentation/jedis/JedisInstrumentation.java
dd-java-agent/instrumentation/jedis-1.4/src/main/java/datadog/trace/instrumentation/jedis/JedisInstrumentation.java
@@ -32,7 +32,7 @@ public final class JedisInstrumentation extends Instrumenter.Default {
@Override
public ElementMatcher<TypeDescription> typeMatcher() {
- return named("redis.clients.jedis.Protocol");
+ return named("redis.clients.jedis.Protocol").and(named("redis.clients.jedis.JedisCommands"));
}
@Override

MODIFY
dd-java-agent/instrumentation/jedis-3.0/src/main/java/datadog/trace/instrumentation/jedis30/JedisInstrumentation.java
dd-java-agent/instrumentation/jedis-3.0/src/main/java/datadog/trace/instrumentation/jedis30/JedisInstrumentation.java
@@ -30,7 +30,8 @@ public final class JedisInstrumentation extends Instrumenter.Default {
@Override
public ElementMatcher<TypeDescription> typeMatcher() {
- return named("redis.clients.jedis.Protocol");
+ return named("redis.clients.jedis.Protocol")
+ .and(named("redis.clients.jedis.commands.ProtocolCommand"));
}
@Override

Make matchers more strict