@Configuration @ConditionalOnClass(value=org.springframework.integration.config.GlobalChannelInterceptor.class) @ConditionalOnBean(value=Tracer.class) @ConditionalOnProperty(value="spring.sleuth.integration.enabled", matchIfMissing=true) @EnableConfigurationProperties(value=TraceKeys.class) public class TraceSpringIntegrationAutoConfiguration extends Object
Auto-configuration that registers a Sleuth version of the
ChannelInterceptor.TraceChannelInterceptor| Constructor and Description |
|---|
TraceSpringIntegrationAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
TraceChannelInterceptor |
traceChannelInterceptor(Tracer tracer,
TraceKeys traceKeys,
Random random,
MessagingSpanTextMapExtractor spanExtractor,
MessagingSpanTextMapInjector spanInjector) |
public TraceSpringIntegrationAutoConfiguration()
@Bean
@GlobalChannelInterceptor(patterns="${spring.sleuth.integration.patterns:*}")
public TraceChannelInterceptor traceChannelInterceptor(Tracer tracer,
TraceKeys traceKeys,
Random random,
MessagingSpanTextMapExtractor spanExtractor,
MessagingSpanTextMapInjector spanInjector)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.