@Configuration(proxyBeanMethods=false) @AutoConfigureAfter(value={MetricsAutoConfiguration.class,SimpleMetricsExportAutoConfiguration.class}) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value={org.glassfish.jersey.server.ResourceConfig.class,io.micrometer.jersey2.server.MetricsApplicationEventListener.class}) @ConditionalOnBean(value={io.micrometer.core.instrument.MeterRegistry.class,org.glassfish.jersey.server.ResourceConfig.class}) @EnableConfigurationProperties(value=MetricsProperties.class) public class JerseyServerMetricsAutoConfiguration extends Object
Auto-configuration
for Jersey server instrumentation.Constructor and Description |
---|
JerseyServerMetricsAutoConfiguration(MetricsProperties properties) |
Modifier and Type | Method and Description |
---|---|
io.micrometer.core.instrument.config.MeterFilter |
jerseyMetricsUriTagFilter() |
ResourceConfigCustomizer |
jerseyServerMetricsResourceConfigCustomizer(io.micrometer.core.instrument.MeterRegistry meterRegistry,
io.micrometer.jersey2.server.JerseyTagsProvider tagsProvider) |
io.micrometer.jersey2.server.DefaultJerseyTagsProvider |
jerseyTagsProvider() |
public JerseyServerMetricsAutoConfiguration(MetricsProperties properties)
@Bean @ConditionalOnMissingBean(value=io.micrometer.jersey2.server.JerseyTagsProvider.class) public io.micrometer.jersey2.server.DefaultJerseyTagsProvider jerseyTagsProvider()
@Bean public ResourceConfigCustomizer jerseyServerMetricsResourceConfigCustomizer(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.micrometer.jersey2.server.JerseyTagsProvider tagsProvider)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.