public class WebMvcMetricsFilter
extends org.springframework.web.filter.OncePerRequestFilter
| Constructor and Description |
|---|
WebMvcMetricsFilter(io.micrometer.core.instrument.MeterRegistry registry,
WebMvcTagsProvider tagsProvider,
java.lang.String metricName,
AutoTimer autoTimer)
Create a new
WebMvcMetricsFilter instance. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain) |
protected boolean |
shouldNotFilterAsyncDispatch() |
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterErrorDispatchpublic WebMvcMetricsFilter(io.micrometer.core.instrument.MeterRegistry registry,
WebMvcTagsProvider tagsProvider,
java.lang.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 org.springframework.web.filter.OncePerRequestFilterprotected void doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws javax.servlet.ServletException,
java.io.IOException
doFilterInternal in class org.springframework.web.filter.OncePerRequestFilterjavax.servlet.ServletExceptionjava.io.IOException