@Configuration
@EnableConfigurationProperties(value={ZipkinProperties.class,org.springframework.cloud.sleuth.sampler.SamplerProperties.class})
@ConditionalOnProperty(value="spring.zipkin.enabled",
matchIfMissing=true)
public class ZipkinAutoConfiguration
extends Object
Auto-configuration
enables reporting to Zipkin via HTTP. Has a default Sampler set as
PercentageBasedSampler.| Modifier and Type | Class and Description |
|---|---|
protected static class |
ZipkinAutoConfiguration.DefaultEndpointLocatorConfiguration |
protected static class |
ZipkinAutoConfiguration.DiscoveryClientEndpointLocatorConfiguration |
| Constructor and Description |
|---|
ZipkinAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
Sampler |
defaultTraceSampler(SamplerProperties config) |
ZipkinSpanReporter |
reporter(SpanMetricReporter spanMetricReporter,
ZipkinProperties zipkin) |
SpanReporter |
zipkinSpanListener(ZipkinSpanReporter reporter,
EndpointLocator endpointLocator) |
@Bean @ConditionalOnMissingBean public ZipkinSpanReporter reporter(SpanMetricReporter spanMetricReporter, ZipkinProperties zipkin)
@Bean @ConditionalOnMissingBean public Sampler defaultTraceSampler(SamplerProperties config)
@Bean public SpanReporter zipkinSpanListener(ZipkinSpanReporter reporter, EndpointLocator endpointLocator)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.