Fix jeddis muzzle failure (#4570)
This commit is contained in:
parent
73a28dadb4
commit
24f01c6b5c
|
@ -21,6 +21,7 @@ dependencies {
|
||||||
// ensures jedis-1.4 instrumentation does not load with jedis 3.0+ by failing
|
// ensures jedis-1.4 instrumentation does not load with jedis 3.0+ by failing
|
||||||
// the tests in the event it does. The tests will end up with double spans
|
// the tests in the event it does. The tests will end up with double spans
|
||||||
testInstrumentation(project(":instrumentation:jedis:jedis-1.4:javaagent"))
|
testInstrumentation(project(":instrumentation:jedis:jedis-1.4:javaagent"))
|
||||||
|
testInstrumentation(project(":instrumentation:jedis:jedis-4.0:javaagent"))
|
||||||
|
|
||||||
latestDepTestLibrary("redis.clients:jedis:3.+")
|
latestDepTestLibrary("redis.clients:jedis:3.+")
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,10 @@ public class JedisInstrumentationModule extends InstrumentationModule {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ElementMatcher.Junction<ClassLoader> classLoaderMatcher() {
|
public ElementMatcher.Junction<ClassLoader> classLoaderMatcher() {
|
||||||
return not(hasClassesNamed("redis.clients.jedis.CommandArguments"));
|
// missing in 2.x
|
||||||
|
return hasClassesNamed("redis.clients.jedis.commands.BasicCommands")
|
||||||
|
// added in 4.0
|
||||||
|
.and(not(hasClassesNamed("redis.clients.jedis.CommandArguments")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue