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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.http.policy.HttpPipelinePolicy
azureSleuthHttpPolicy
(org.springframework.cloud.sleuth.Tracer tracer) Autoconfigure theHttpPipelinePolicy
for sleuth usage.
-
Field Details
-
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 theHttpPipelinePolicy
for sleuth usage.- Parameters:
tracer
- the sleuthTracer
.- Returns:
- the http pipeline policy
-