Class WebClientAutoConfiguration


  • @Configuration
    @ConditionalOnClass(org.springframework.web.reactive.function.client.WebClient.class)
    @EnableConfigurationProperties(HttpClientsProperties.class)
    @ConditionalOnProperty(prefix="otel.springboot.httpclients",
                           name="enabled",
                           matchIfMissing=true)
    public class WebClientAutoConfiguration
    extends Object
    Configures WebClient for tracing.

    Adds Open Telemetry instrumentation to WebClient beans after initialization

    • Constructor Detail

      • WebClientAutoConfiguration

        public WebClientAutoConfiguration()
    • Method Detail

      • otelWebClientBeanPostProcessor

        @Bean
        public io.opentelemetry.instrumentation.spring.autoconfigure.httpclients.webclient.WebClientBeanPostProcessor otelWebClientBeanPostProcessor​(org.springframework.beans.factory.ObjectProvider<io.opentelemetry.api.OpenTelemetry> openTelemetryProvider)