@Override
    protected void doFilterInternal(final HttpServletRequest request, final HttpServletResponse response,
                                    final FilterChain filterChain) {
        slowRequestTimer.record(Unchecked.runnable(() -> {
            val startTime = System.currentTimeMillis();
            filterChain.doFilter(request, response);
            val duration = System.currentTimeMillis() - startTime;
            if (duration > SLOW_REQUEST_THRESHOLD) {
                LOGGER.warn("Slow request detected: [{}] took [{}] ms", request.getRequestURI(), duration);
            }
        }));
    }
This is {@link SlowRequestsFilter}.

@author Misagh Moayyed
@since 7.2.0
core/cas-server-core-monitor/src/main/java/org/apereo/cas/monitor/SlowRequestsFilter.java