Record metrics for request handled by ParameterizableViewController

Closes gh-10335
pull/10545/merge
Andy Wilkinson 7 years ago
parent 331c7a1c56
commit 41c297063b

@ -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));

Loading…
Cancel
Save