@Requires(classes=brave.Tracing.class) @Requires(property="tracing.zipkin.enabled",value="true") @ConfigurationProperties(value="tracing.zipkin") public class BraveTracerConfiguration extends Object implements Toggleable
| Modifier and Type | Class and Description | 
|---|---|
| static class  | BraveTracerConfiguration.HttpClientSenderConfigurationUsed to configure HTTP trace sending under the  tracing.zipkin.httpnamespace. | 
| static class  | BraveTracerConfiguration.SamplerConfigurationThe sampler configuration. | 
| Modifier and Type | Field and Description | 
|---|---|
| static boolean | DEFAULT_ENABLEDThe default enable value. | 
| static float | DEFAULT_SAMPLER_PROBABILITY | 
| static String | PREFIX | 
| protected brave.Tracing.Builder | tracingBuilder | 
| Constructor and Description | 
|---|
| BraveTracerConfiguration(ApplicationConfiguration configuration)Constructs a new  BraveTracerConfiguration. | 
| Modifier and Type | Method and Description | 
|---|---|
| brave.Tracing.Builder | getTracingBuilder() | 
| boolean | isEnabled() | 
| void | setClock(brave.Clock clock) | 
| void | setCurrentTraceContext(brave.propagation.CurrentTraceContext traceContext)Sets the current trace context. | 
| void | setEnabled(boolean enabled)Default value (false). | 
| void | setErrorParser(brave.ErrorParser errorParser) | 
| void | setPropagationFactory(brave.propagation.Propagation.Factory propagationFactory) | 
| void | setSampler(brave.sampler.Sampler sampler) | 
| void | setSamplerConfiguration(BraveTracerConfiguration.SamplerConfiguration samplerConfiguration) | 
public static final String PREFIX
public static final float DEFAULT_SAMPLER_PROBABILITY
public static final boolean DEFAULT_ENABLED
@ConfigurationBuilder(prefixes="", excludes={"errorParser","clock","endpoint","spanReporter","propagationFactory","currentTraceContext","sampler"}) protected brave.Tracing.Builder tracingBuilder
public BraveTracerConfiguration(ApplicationConfiguration configuration)
BraveTracerConfiguration.configuration - The application configurationpublic boolean isEnabled()
isEnabled in interface Toggleablepublic void setEnabled(boolean enabled)
enabled - True if tracing is enabled@Inject public void setSamplerConfiguration(@Nullable BraveTracerConfiguration.SamplerConfiguration samplerConfiguration)
samplerConfiguration - The sampler configurationpublic brave.Tracing.Builder getTracingBuilder()
Tracing builder@Inject public void setSampler(@Nullable brave.sampler.Sampler sampler)
sampler - The Sampler to use@Inject public void setErrorParser(@Nullable brave.ErrorParser errorParser)
errorParser - The ErrorParser to use@Inject public void setPropagationFactory(@Nullable brave.propagation.Propagation.Factory propagationFactory)
propagationFactory - The Propagation.Factory to use@Inject public void setClock(@Nullable brave.Clock clock)
clock - The Clock to use@Inject public void setCurrentTraceContext(brave.propagation.CurrentTraceContext traceContext)
traceContext - The trace context