@Configuration
@EnableConfigurationProperties(value={SleuthStreamProperties.class,org.springframework.cloud.sleuth.sampler.SamplerProperties.class})
@EnableBinding(value=SleuthSource.class)
@ConditionalOnProperty(value="spring.sleuth.stream.enabled",
matchIfMissing=true)
public class SleuthStreamAutoConfiguration
extends Object
Auto-configuration
for sending spans over Spring Cloud Stream. This is for the producer
(via SleuthSource). A consumer can enable binding to SleuthSink and
receive the messages coming from the source (they have the same channel name so there
is no additional configuration to do by default).| Modifier and Type | Class and Description |
|---|---|
protected static class |
SleuthStreamAutoConfiguration.DefaultEndpointLocatorConfiguration |
protected static class |
SleuthStreamAutoConfiguration.DiscoveryClientEndpointLocatorConfiguration |
| Constructor and Description |
|---|
SleuthStreamAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
Sampler |
defaultTraceSampler(SamplerProperties config) |
StreamSpanReporter |
sleuthStreamSpanReporter(HostLocator endpointLocator,
SpanMetricReporter spanMetricReporter) |
org.springframework.messaging.support.ChannelInterceptor |
zipkinChannelInterceptor(SpanMetricReporter spanMetricReporter) |
@Bean @ConditionalOnMissingBean public Sampler defaultTraceSampler(SamplerProperties config)
@Bean
@GlobalChannelInterceptor(patterns="sleuth",
order=-2147483648)
public org.springframework.messaging.support.ChannelInterceptor zipkinChannelInterceptor(SpanMetricReporter spanMetricReporter)
@Bean @ConditionalOnMissingBean public StreamSpanReporter sleuthStreamSpanReporter(HostLocator endpointLocator, SpanMetricReporter spanMetricReporter)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.