Codehale metrics provides servlets that we instrument
MODIFY
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/bytebuddy/matcher/AdditionalLibraryIgnoresMatcher.java
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/bytebuddy/matcher/AdditionalLibraryIgnoresMatcher.java
@@ -30,7 +30,6 @@ public class AdditionalLibraryIgnoresMatcher<T extends TypeDescription>
if (name.startsWith("ch.qos.logback.")
|| name.startsWith("com.beust.jcommander.")
|| name.startsWith("com.carrotsearch.hppc.")
- || name.startsWith("com.codahale.metrics.")
|| name.startsWith("com.couchbase.client.deps.")
|| name.startsWith("com.fasterxml.classmate.")
|| name.startsWith("com.fasterxml.jackson.")
@@ -89,6 +88,14 @@ public class AdditionalLibraryIgnoresMatcher<T extends TypeDescription>
return true;
}
+ if (name.startsWith("com.codahale.metrics.")) {
+ // We instrument servlets
+ if (name.startsWith("com.codahale.metrics.servlets.")) {
+ return false;
+ }
+ return true;
+ }
+
// kotlin, note we do not ignore kotlinx because we instrument coroutins code
if (name.startsWith("kotlin.")) {
return true;

Codehale metrics provides servlets that we instrument