Codehale metrics provides servlets that we instrument
@@ -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;
