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(HttpServletRequest request,
HttpServletResponse response,
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.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.