Record metrics for request handled by ParameterizableViewController

Closes gh-10335
This commit is contained in:
Andy Wilkinson 2017-11-20 13:20:35 +00:00
parent 331c7a1c56
commit 41c297063b

View File

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