Check for java concurrent classes prefixes match only if class was not whitelisted already
@@ -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());
