public class WebMvcMetricsFilter
extends org.springframework.web.filter.OncePerRequestFilter
Constructor and Description |
---|
WebMvcMetricsFilter(org.springframework.context.ApplicationContext context,
io.micrometer.core.instrument.MeterRegistry registry,
WebMvcTagsProvider tagsProvider,
String metricName,
boolean autoTimeRequests)
Deprecated.
since 2.0.7 in favor of
WebMvcMetricsFilter(MeterRegistry, WebMvcTagsProvider, String, boolean) |
WebMvcMetricsFilter(io.micrometer.core.instrument.MeterRegistry registry,
WebMvcTagsProvider tagsProvider,
String metricName,
boolean autoTimeRequests)
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, shouldNotFilterErrorDispatch
@Deprecated public WebMvcMetricsFilter(org.springframework.context.ApplicationContext context, io.micrometer.core.instrument.MeterRegistry registry, WebMvcTagsProvider tagsProvider, String metricName, boolean autoTimeRequests)
WebMvcMetricsFilter(MeterRegistry, WebMvcTagsProvider, String, boolean)
WebMvcMetricsFilter
instance.context
- the source application contextregistry
- 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, boolean autoTimeRequests)
WebMvcMetricsFilter
instance.registry
- the meter registrytagsProvider
- the tags providermetricName
- the metric nameautoTimeRequests
- if requests should be automatically timedprotected boolean shouldNotFilterAsyncDispatch()
shouldNotFilterAsyncDispatch
in class org.springframework.web.filter.OncePerRequestFilter
protected 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.OncePerRequestFilter
javax.servlet.ServletException
IOException
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.