public class WebMvcMetricsFilter
extends org.springframework.web.filter.OncePerRequestFilter
| Constructor and Description |
|---|
WebMvcMetricsFilter(io.micrometer.core.instrument.MeterRegistry registry,
WebMvcTagsProvider tagsProvider,
String metricName,
AutoTimer autoTimer)
Create a new
WebMvcMetricsFilter instance. |
WebMvcMetricsFilter(io.micrometer.core.instrument.MeterRegistry registry,
WebMvcTagsProvider tagsProvider,
String metricName,
boolean autoTimeRequests)
Deprecated.
since 2.2.0 in favor of
WebMvcMetricsFilter(MeterRegistry, WebMvcTagsProvider, String, AutoTimer) |
| 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, shouldNotFilterErrorDispatch@Deprecated public WebMvcMetricsFilter(io.micrometer.core.instrument.MeterRegistry registry, WebMvcTagsProvider tagsProvider, String metricName, boolean autoTimeRequests)
WebMvcMetricsFilter(MeterRegistry, WebMvcTagsProvider, String, AutoTimer)WebMvcMetricsFilter instance.registry - the meter registrytagsProvider - the tags providermetricName - the metric nameautoTimeRequests - if requests should be automatically timedpublic 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 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,
IOException
doFilterInternal in class org.springframework.web.filter.OncePerRequestFilterjavax.servlet.ServletExceptionIOExceptionCopyright © 2019 Pivotal Software, Inc.. All rights reserved.