public class WebMvcMetricsFilter extends OncePerRequestFilter
ALREADY_FILTERED_SUFFIXlogger| Constructor and Description |
|---|
WebMvcMetricsFilter(io.micrometer.core.instrument.MeterRegistry registry,
WebMvcTagsProvider tagsProvider,
String metricName,
AutoTimer autoTimer)
Create a new
WebMvcMetricsFilter instance. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doFilterInternal(HttpServletRequest request,
HttpServletResponse response,
FilterChain filterChain) |
protected boolean |
shouldNotFilterAsyncDispatch() |
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterErrorDispatchaddRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContextpublic WebMvcMetricsFilter(io.micrometer.core.instrument.MeterRegistry registry,
WebMvcTagsProvider tagsProvider,
String metricName,
AutoTimer autoTimer)
WebMvcMetricsFilter instance.registry - the meter registrytagsProvider - the tags providermetricName - the metric nameautoTimer - the auto-timers to apply or null to disable auto-timingprotected boolean shouldNotFilterAsyncDispatch()
shouldNotFilterAsyncDispatch in class OncePerRequestFilterprotected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException
doFilterInternal in class OncePerRequestFilterServletExceptionIOException