Ignore more groovy classes
MODIFY
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/bytebuddy/matcher/GlobalIgnoresMatcher.java
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/bytebuddy/matcher/GlobalIgnoresMatcher.java
@@ -47,8 +47,6 @@ public class GlobalIgnoresMatcher<T extends TypeDescription>
|| name.startsWith("net.bytebuddy.")
|| name.startsWith("jdk.")
|| name.startsWith("org.aspectj.")
- || name.startsWith("org.groovy.")
- || name.startsWith("org.codehaus.groovy.macro.")
|| name.startsWith("com.intellij.rt.debugger.")
|| name.startsWith("com.p6spy.")
|| name.startsWith("com.newrelic.")
@@ -61,6 +59,18 @@ public class GlobalIgnoresMatcher<T extends TypeDescription>
return true;
}
+ // groovy
+ if (name.startsWith("org.groovy.") || name.startsWith("org.apache.groovy.")) {
+ return true;
+ }
+ if (name.startsWith("org.codehaus.groovy.")) {
+ // We seem to instrument some classes in runtime
+ if (name.startsWith("org.codehaus.groovy.runtime.")) {
+ return false;
+ }
+ return true;
+ }
+
if (name.startsWith("datadog.trace.")) {
// FIXME: We should remove this once
// https://github.com/raphw/byte-buddy/issues/558 is fixed

Ignore more groovy classes