@Configuration
@EnableConfigurationProperties(value={SleuthStreamProperties.class,org.springframework.cloud.sleuth.sampler.SamplerProperties.class})
@EnableBinding(value=SleuthSource.class)
public class SleuthStreamAutoConfiguration
extends Object
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) |
StreamSpanListener |
sleuthTracer(HostLocator endpointLocator,
SpanReporterService spanReporterService) |
org.springframework.messaging.support.ChannelInterceptor |
zipkinChannelInterceptor(SpanReporterService spanReporterService) |
@Bean @ConditionalOnMissingBean public Sampler defaultTraceSampler(SamplerProperties config)
@Bean
@GlobalChannelInterceptor(patterns="sleuth",
order=-2147483648)
public org.springframework.messaging.support.ChannelInterceptor zipkinChannelInterceptor(SpanReporterService spanReporterService)
@Bean public StreamSpanListener sleuthTracer(HostLocator endpointLocator, SpanReporterService spanReporterService)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.