@Configuration @EnableConfigurationProperties(value={<error>,GcpTraceProperties.class,<error>}) @ConditionalOnProperty(value="spring.cloud.gcp.trace.enabled", matchIfMissing=true) @ConditionalOnClass(value=<error>) @Import(value={StackdriverTraceAutoConfiguration.TraceConsumerConfiguration.class,StackdriverTraceAutoConfiguration.StackdriverTraceHttpAutoconfiguration.class}) @AutoConfigureBefore(value=<error>) public class StackdriverTraceAutoConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
StackdriverTraceAutoConfiguration.NonRefreshScopeProbabilityBasedSamplerConfiguration |
protected static class |
StackdriverTraceAutoConfiguration.RefreshScopedProbabilityBasedSamplerConfiguration |
static class |
StackdriverTraceAutoConfiguration.StackdriverTraceHttpAutoconfiguration |
class |
StackdriverTraceAutoConfiguration.TraceConsumerConfiguration |
Constructor and Description |
---|
StackdriverTraceAutoConfiguration(GcpProjectIdProvider gcpProjectIdProvider,
com.google.api.gax.core.CredentialsProvider credentialsProvider,
GcpTraceProperties gcpTraceProperties) |
Modifier and Type | Method and Description |
---|---|
<any> |
reporter(FlushableTraceConsumer traceConsumer,
SpanTranslator spanTranslator) |
SpanTranslator |
spanTranslator(LabelExtractor labelExtractor) |
SleuthProperties |
stackdriverSleuthProperties(SleuthProperties sleuthProperties) |
LabelExtractor |
traceLabelExtractor() |
public StackdriverTraceAutoConfiguration(GcpProjectIdProvider gcpProjectIdProvider, com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpTraceProperties gcpTraceProperties) throws IOException
IOException
@Bean @Primary public SleuthProperties stackdriverSleuthProperties(SleuthProperties sleuthProperties)
@Bean @ConditionalOnMissingBean public <any> reporter(FlushableTraceConsumer traceConsumer, SpanTranslator spanTranslator)
@Bean @ConditionalOnMissingBean public SpanTranslator spanTranslator(LabelExtractor labelExtractor)
@Bean @ConditionalOnMissingBean public LabelExtractor traceLabelExtractor()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.