Commit 41c29706 authored by Andy Wilkinson's avatar Andy Wilkinson

Record metrics for request handled by ParameterizableViewController

Closes gh-10335
parent 331c7a1c
...@@ -192,7 +192,8 @@ public class WebMvcMetrics { ...@@ -192,7 +192,8 @@ public class WebMvcMetrics {
if (handler instanceof HandlerMethod) { if (handler instanceof HandlerMethod) {
return timed((HandlerMethod) handler); return timed((HandlerMethod) handler);
} }
if ((handler == null || handler instanceof ResourceHttpRequestHandler) if ((handler == null || handler instanceof ResourceHttpRequestHandler
|| handler instanceof ParameterizableViewController)
&& this.autoTimeRequests) { && this.autoTimeRequests) {
return Collections.singleton( return Collections.singleton(
new TimerConfig(getServerRequestName(), this.recordAsPercentiles)); new TimerConfig(getServerRequestName(), this.recordAsPercentiles));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment