mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Record metrics for request handled by ParameterizableViewController
Closes gh-10335
This commit is contained in:
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…
Reference in New Issue
Block a user