Class WebMvcMetricsAutoConfiguration
java.lang.Object
org.springframework.boot.actuate.autoconfigure.metrics.web.servlet.WebMvcMetricsAutoConfiguration
@Configuration(proxyBeanMethods=false)
@AutoConfigureAfter({MetricsAutoConfiguration.class,CompositeMeterRegistryAutoConfiguration.class,SimpleMetricsExportAutoConfiguration.class})
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass(org.springframework.web.servlet.DispatcherServlet.class)
@ConditionalOnBean(io.micrometer.core.instrument.MeterRegistry.class)
@EnableConfigurationProperties(MetricsProperties.class)
public class WebMvcMetricsAutoConfiguration
extends Object
Auto-configuration
for instrumentation of Spring Web
MVC servlet-based request mappings.- Since:
- 2.0.0
- Author:
- Jon Schneider, Dmytro Nosan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.micrometer.core.instrument.config.MeterFilter
org.springframework.boot.actuate.autoconfigure.metrics.web.servlet.WebMvcMetricsAutoConfiguration.MetricsWebMvcConfigurer
metricsWebMvcConfigurer
(io.micrometer.core.instrument.MeterRegistry meterRegistry, WebMvcTagsProvider tagsProvider) webMvcMetricsFilter
(io.micrometer.core.instrument.MeterRegistry registry, WebMvcTagsProvider tagsProvider) webMvcTagsProvider
(ObjectProvider<WebMvcTagsContributor> contributors)
-
Constructor Details
-
WebMvcMetricsAutoConfiguration
-
-
Method Details
-
webMvcTagsProvider
@Bean @ConditionalOnMissingBean(WebMvcTagsProvider.class) public DefaultWebMvcTagsProvider webMvcTagsProvider(ObjectProvider<WebMvcTagsContributor> contributors) -
webMvcMetricsFilter
@Bean @ConditionalOnMissingBean public FilterRegistrationBean<WebMvcMetricsFilter> webMvcMetricsFilter(io.micrometer.core.instrument.MeterRegistry registry, WebMvcTagsProvider tagsProvider) -
metricsHttpServerUriTagFilter
-
metricsWebMvcConfigurer
@Bean public org.springframework.boot.actuate.autoconfigure.metrics.web.servlet.WebMvcMetricsAutoConfiguration.MetricsWebMvcConfigurer metricsWebMvcConfigurer(io.micrometer.core.instrument.MeterRegistry meterRegistry, WebMvcTagsProvider tagsProvider)
-