@Configuration(proxyBeanMethods=false) @AutoConfigureAfter(value={MetricsAutoConfiguration.class,SimpleMetricsExportAutoConfiguration.class}) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value={org.glassfish.jersey.server.ResourceConfig.class,io.micrometer.core.instrument.binder.jersey.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.core.instrument.binder.jersey.server.JerseyTagsProvider tagsProvider) |
io.micrometer.core.instrument.binder.jersey.server.DefaultJerseyTagsProvider |
jerseyTagsProvider() |
public JerseyServerMetricsAutoConfiguration(MetricsProperties properties)
@Bean @ConditionalOnMissingBean(value=io.micrometer.core.instrument.binder.jersey.server.JerseyTagsProvider.class) public io.micrometer.core.instrument.binder.jersey.server.DefaultJerseyTagsProvider jerseyTagsProvider()
@Bean public ResourceConfigCustomizer jerseyServerMetricsResourceConfigCustomizer(io.micrometer.core.instrument.MeterRegistry meterRegistry, io.micrometer.core.instrument.binder.jersey.server.JerseyTagsProvider tagsProvider)