@Configuration
@EnableConfigurationProperties(value={SleuthStreamProperties.class,org.springframework.cloud.sleuth.sampler.SamplerProperties.class,ZipkinProperties.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 |
|---|---|
org.springframework.integration.scheduling.PollerMetadata |
defaultStreamSpanReporterPoller(SleuthStreamProperties sleuth) |
Sampler |
defaultTraceSampler(SamplerProperties config) |
StreamSpanReporter |
sleuthStreamSpanReporter(HostLocator endpointLocator,
SpanMetricReporter spanMetricReporter,
org.springframework.core.env.Environment environment,
List<SpanAdjuster> spanAdjusters) |
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, org.springframework.core.env.Environment environment, List<SpanAdjuster> spanAdjusters)
@Bean(name="streamSpanReporterPoller") @ConditionalOnMissingBean(name="streamSpanReporterPoller") public org.springframework.integration.scheduling.PollerMetadata defaultStreamSpanReporterPoller(SleuthStreamProperties sleuth)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.