Fix couchbase ignores
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
@@ -29,7 +29,6 @@ public class AdditionalLibraryIgnoresMatcher<T extends TypeDescription>
if (name.startsWith("com.beust.jcommander.")
|| name.startsWith("com.carrotsearch.hppc.")
- || name.startsWith("com.couchbase.client.deps.")
|| name.startsWith("com.fasterxml.classmate.")
|| name.startsWith("com.fasterxml.jackson.")
|| name.startsWith("com.github.mustachejava.")
@@ -189,6 +188,17 @@ public class AdditionalLibraryIgnoresMatcher<T extends TypeDescription>
return true;
}
+ if (name.startsWith("com.couchbase.client.deps.")) {
+ // Couchbase library includes some packaged dependencies, unfortunately some of them are
+ // instrumented by java-concurrent instrumentation
+ if (name.startsWith("com.couchbase.client.deps.io.netty.")
+ || name.startsWith("com.couchbase.client.deps.org.LatencyUtils.")
+ || name.startsWith("com.couchbase.client.deps.com.lmax.disruptor.")) {
+ return false;
+ }
+ return true;
+ }
+
if (name.startsWith("com.google.cloud.")
|| name.startsWith("com.google.instrumentation.")
|| name.startsWith("com.google.j2objc.")

Fix couchbase ignores