A bit of documentation.

This commit is contained in:
Rémi Cocula
2017-01-25 23:18:52 +01:00
parent 88e820d8d1
commit aec131a3d1
3 changed files with 19 additions and 0 deletions
@@ -25,6 +25,7 @@ public class MetricsFilter implements Filter {
HttpServletRequest httpServletRequest = (HttpServletRequest)request;
String timerName = httpServletRequest.getRequestURI();
// Add a metric that measures the time spent for each http request for the /main.view url.
try (MetricsManager.Timer t = metricsManager.condition(timerName.contains("main.view")).timer(this,timerName)) {
chain.doFilter(request, response);
}