|
|
@ -32,6 +32,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
|
import org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration;
|
|
|
|
import org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration;
|
|
|
|
import org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration;
|
|
|
|
import org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration;
|
|
|
|
|
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.annotation.Import;
|
|
|
|
import org.springframework.context.annotation.Import;
|
|
|
@ -53,6 +54,7 @@ import org.springframework.core.annotation.Order;
|
|
|
|
@ConditionalOnClass(Observation.class)
|
|
|
|
@ConditionalOnClass(Observation.class)
|
|
|
|
@ConditionalOnBean(ObservationRegistry.class)
|
|
|
|
@ConditionalOnBean(ObservationRegistry.class)
|
|
|
|
@Import({ RestTemplateObservationConfiguration.class, WebClientObservationConfiguration.class })
|
|
|
|
@Import({ RestTemplateObservationConfiguration.class, WebClientObservationConfiguration.class })
|
|
|
|
|
|
|
|
@EnableConfigurationProperties({ MetricsProperties.class, ObservationProperties.class })
|
|
|
|
public class HttpClientObservationsAutoConfiguration {
|
|
|
|
public class HttpClientObservationsAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|