Class AzureSleuthAutoConfiguration

java.lang.Object
com.azure.spring.cloud.autoconfigure.trace.sleuth.AzureSleuthAutoConfiguration

@Role(2) @Configuration(proxyBeanMethods=false) @ConditionalOnClass({com.azure.spring.cloud.trace.sleuth.SleuthHttpPolicy.class,org.springframework.cloud.sleuth.Tracer.class}) @ConditionalOnProperty(value="spring.sleuth.enabled", matchIfMissing=true) public class AzureSleuthAutoConfiguration extends Object
Auto-configuration for Spring Cloud Azure Sleuth support.
Since:
4.0.0
  • Field Details

    • DEFAULT_SLEUTH_HTTP_POLICY_BEAN_NAME

      public static final String DEFAULT_SLEUTH_HTTP_POLICY_BEAN_NAME
      Default sleuth HTTP policy bean name.
      See Also:
  • Constructor Details

    • AzureSleuthAutoConfiguration

      public AzureSleuthAutoConfiguration()
  • Method Details

    • azureSleuthHttpPolicy

      @Bean(name="AzureSleuthHttpPolicy") @ConditionalOnMissingBean(name="AzureSleuthHttpPolicy") public com.azure.core.http.policy.HttpPipelinePolicy azureSleuthHttpPolicy(org.springframework.cloud.sleuth.Tracer tracer)
      Autoconfigure the HttpPipelinePolicy for sleuth usage.
      Parameters:
      tracer - the sleuth Tracer.
      Returns:
      the http pipeline policy