Class OkHttpMetricsAutoConfiguration
java.lang.Object
io.freefair.spring.okhttp.autoconfigure.metrics.OkHttpMetricsAutoConfiguration
@AutoConfiguration(after=org.springframework.boot.actuate.autoconfigure.metrics.CompositeMeterRegistryAutoConfiguration.class)
@ConditionalOnBean(io.micrometer.core.instrument.MeterRegistry.class)
@ConditionalOnClass({io.micrometer.core.instrument.MeterRegistry.class,io.micrometer.core.instrument.binder.okhttp3.OkHttpMetricsEventListener.class,okhttp3.OkHttpClient.class})
@EnableConfigurationProperties(OkHttpMetricsProperties.class)
public class OkHttpMetricsAutoConfiguration
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micrometer.core.instrument.binder.okhttp3.OkHttpConnectionPoolMetrics
okHttpConnectionPoolMetrics
(okhttp3.ConnectionPool connectionPool, OkHttpProperties okHttpProperties) io.micrometer.core.instrument.binder.okhttp3.OkHttpMetricsEventListener
okHttpMetricsEventListener
(io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
Constructor Details
-
OkHttpMetricsAutoConfiguration
public OkHttpMetricsAutoConfiguration()
-
-
Method Details
-
okHttpMetricsEventListener
@Bean @ConditionalOnProperty(value="okhttp.metrics.enabled", matchIfMissing=true, havingValue="true") @ConditionalOnMissingBean public io.micrometer.core.instrument.binder.okhttp3.OkHttpMetricsEventListener okHttpMetricsEventListener(io.micrometer.core.instrument.MeterRegistry meterRegistry) -
okHttpConnectionPoolMetrics
@Bean @ConditionalOnProperty(value="okhttp.metrics.pool.enabled", matchIfMissing=true, havingValue="true") @ConditionalOnBean(okhttp3.ConnectionPool.class) @ConditionalOnMissingBean public io.micrometer.core.instrument.binder.okhttp3.OkHttpConnectionPoolMetrics okHttpConnectionPoolMetrics(okhttp3.ConnectionPool connectionPool, OkHttpProperties okHttpProperties)
-