Check for java concurrent classes prefixes match only if class was not whitelisted already
MODIFY
dd-java-agent/instrumentation/java-concurrent/src/main/java/datadog/trace/instrumentation/java/concurrent/ExecutorInstrumentation.java
dd-java-agent/instrumentation/java-concurrent/src/main/java/datadog/trace/instrumentation/java/concurrent/ExecutorInstrumentation.java
@@ -112,12 +112,15 @@ public final class ExecutorInstrumentation extends Instrumenter.Configurable {
public boolean matches(final TypeDescription target) {
boolean whitelisted = WHITELISTED_EXECUTORS.contains(target.getName());
+ // Check for possible prefixes match only if not whitelisted already
+ if (!whitelisted) {
for (String name : WHITELISTED_EXECUTORS_PREFIXES) {
if (target.getName().startsWith(name)) {
whitelisted = true;
break;
}
}
+ }
if (!whitelisted) {
log.debug("Skipping executor instrumentation for {}", target.getName());

Check for java concurrent classes prefixes match only if class was not whitelisted already