@Configuration
@EnableConfigurationProperties(value={org.springframework.cloud.sleuth.sampler.SamplerProperties.class,GcpTraceProperties.class,org.springframework.cloud.sleuth.autoconfig.SleuthProperties.class})
@ConditionalOnProperty(value="spring.cloud.gcp.trace.enabled",
matchIfMissing=true)
@ConditionalOnClass(value=zipkin2.reporter.stackdriver.StackdriverSender.class)
@AutoConfigureBefore(value={org.springframework.cloud.sleuth.zipkin2.ZipkinAutoConfiguration.class,org.springframework.cloud.sleuth.autoconfig.TraceAutoConfiguration.class})
public class StackdriverTraceAutoConfiguration
extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
StackdriverTraceAutoConfiguration.NonRefreshScopeProbabilityBasedSamplerConfiguration
Configuration for non-refresh scope probability based sampler.
|
protected static class |
StackdriverTraceAutoConfiguration.RefreshScopedProbabilityBasedSamplerConfiguration
Configuration for refresh scope probability based sampler.
|
static class |
StackdriverTraceAutoConfiguration.StackdriverTraceHttpAutoconfiguration
Configuration for Sleuth.
|
| Constructor and Description |
|---|
StackdriverTraceAutoConfiguration(GcpProjectIdProvider gcpProjectIdProvider,
com.google.api.gax.core.CredentialsProvider credentialsProvider,
GcpTraceProperties gcpTraceProperties) |
| Modifier and Type | Method and Description |
|---|---|
zipkin2.codec.BytesEncoder<zipkin2.Span> |
spanBytesEncoder() |
brave.propagation.Propagation.Factory |
stackdriverPropagation() |
zipkin2.reporter.Sender |
stackdriverSender(GcpTraceProperties traceProperties,
com.google.api.gax.core.ExecutorProvider executorProvider,
io.grpc.ManagedChannel channel) |
io.grpc.ManagedChannel |
stackdriverSenderChannel() |
org.springframework.cloud.sleuth.autoconfig.SleuthProperties |
stackdriverSleuthProperties(org.springframework.cloud.sleuth.autoconfig.SleuthProperties sleuthProperties) |
com.google.api.gax.core.ExecutorProvider |
traceExecutorProvider(GcpTraceProperties traceProperties) |
public StackdriverTraceAutoConfiguration(GcpProjectIdProvider gcpProjectIdProvider, com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpTraceProperties gcpTraceProperties) throws IOException
IOException@Bean @Primary public org.springframework.cloud.sleuth.autoconfig.SleuthProperties stackdriverSleuthProperties(org.springframework.cloud.sleuth.autoconfig.SleuthProperties sleuthProperties)
@Bean @ConditionalOnMissingBean(name="traceExecutorProvider") public com.google.api.gax.core.ExecutorProvider traceExecutorProvider(GcpTraceProperties traceProperties)
@Bean(destroyMethod="shutdownNow") @ConditionalOnMissingBean(name="stackdriverSenderChannel") public io.grpc.ManagedChannel stackdriverSenderChannel()
@Bean @ConditionalOnMissingBean public zipkin2.reporter.Sender stackdriverSender(GcpTraceProperties traceProperties, @Qualifier(value="traceExecutorProvider") com.google.api.gax.core.ExecutorProvider executorProvider, @Qualifier(value="stackdriverSenderChannel") io.grpc.ManagedChannel channel) throws IOException
IOException@Bean @ConditionalOnMissingBean public zipkin2.codec.BytesEncoder<zipkin2.Span> spanBytesEncoder()
@Bean @ConditionalOnMissingBean public brave.propagation.Propagation.Factory stackdriverPropagation()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.