diff --git a/apm-agent-plugins/apm-spring-webmvc/apm-spring-webmvc-spring5/src/main/java/co/elastic/apm/agent/springwebmvc/AbstractSpringTransactionNameInstrumentation.java b/apm-agent-plugins/apm-spring-webmvc/apm-spring-webmvc-spring5/src/main/java/co/elastic/apm/agent/springwebmvc/AbstractSpringTransactionNameInstrumentation.java index f55f37f5c2..e69fd16e3b 100644 --- a/apm-agent-plugins/apm-spring-webmvc/apm-spring-webmvc-spring5/src/main/java/co/elastic/apm/agent/springwebmvc/AbstractSpringTransactionNameInstrumentation.java +++ b/apm-agent-plugins/apm-spring-webmvc/apm-spring-webmvc-spring5/src/main/java/co/elastic/apm/agent/springwebmvc/AbstractSpringTransactionNameInstrumentation.java @@ -75,8 +75,7 @@ public abstract class AbstractSpringTransactionNameInstrumentation extends Elast */ @Override public ElementMatcher getTypeMatcher() { - return nameStartsWith("org.springframework.web.servlet") - .and(hasSuperType(named("org.springframework.web.servlet.HandlerAdapter"))) + return hasSuperType(named("org.springframework.web.servlet.HandlerAdapter")) .and(not(isInterface())); }