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(HttpServletRequest request,
HttpServletResponse response,
FilterChain filterChain) |
protected boolean |
shouldNotFilterAsyncDispatch() |
doFilter, 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(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException
doFilterInternal
in class org.springframework.web.filter.OncePerRequestFilter
ServletException
IOException
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.