diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetrics.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetrics.java index f63ea9198a..b4723ddd26 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetrics.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetrics.java @@ -192,7 +192,8 @@ public class WebMvcMetrics { if (handler instanceof HandlerMethod) { return timed((HandlerMethod) handler); } - if ((handler == null || handler instanceof ResourceHttpRequestHandler) + if ((handler == null || handler instanceof ResourceHttpRequestHandler + || handler instanceof ParameterizableViewController) && this.autoTimeRequests) { return Collections.singleton( new TimerConfig(getServerRequestName(), this.recordAsPercentiles));