Muzzle Jedis Instrumentation
Add muzzle block and remove class loader matcher method.
This commit is contained in:
parent
0f3e119ae5
commit
b53514c458
|
@ -1,13 +1,10 @@
|
|||
apply plugin: 'version-scan'
|
||||
|
||||
versionScan {
|
||||
group = "redis.clients"
|
||||
module = "jedis"
|
||||
versions = "[1.4.0,)"
|
||||
legacyModule = "jms-api"
|
||||
verifyPresent = [
|
||||
'redis.clients.jedis.Protocol$Command': null,
|
||||
]
|
||||
muzzle {
|
||||
pass {
|
||||
group = "redis.clients"
|
||||
module = "jedis"
|
||||
versions = "[1.4.0,)"
|
||||
assertInverse = true
|
||||
}
|
||||
}
|
||||
|
||||
apply from: "${rootDir}/gradle/java.gradle"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package datadog.trace.instrumentation.jedis;
|
||||
|
||||
import static datadog.trace.agent.tooling.ClassLoaderMatcher.classLoaderHasClasses;
|
||||
import static io.opentracing.log.Fields.ERROR_OBJECT;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.isMethod;
|
||||
import static net.bytebuddy.matcher.ElementMatchers.isPublic;
|
||||
|
@ -38,11 +37,6 @@ public final class JedisInstrumentation extends Instrumenter.Default {
|
|||
return named("redis.clients.jedis.Protocol");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ElementMatcher<ClassLoader> classLoaderMatcher() {
|
||||
return classLoaderHasClasses("redis.clients.jedis.Protocol$Command");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] helperClassNames() {
|
||||
return new String[] {};
|
||||
|
|
Loading…
Reference in New Issue