@Requires(classes=brave.Tracing.class) @Requires(property="tracing.zipkin.enabled",value="true")
 @ConfigurationProperties(value="tracing.zipkin")
public class BraveTracerConfiguration
extends java.lang.Object
implements io.micronaut.core.util.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 java.lang.String | PREFIX | 
| protected brave.Tracing.Builder | tracingBuilder | 
| Constructor and Description | 
|---|
| BraveTracerConfiguration(io.micronaut.runtime.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 java.lang.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(io.micronaut.runtime.ApplicationConfiguration configuration)
BraveTracerConfiguration.configuration - the application configurationpublic boolean isEnabled()
isEnabled in interface io.micronaut.core.util.Toggleablepublic void setEnabled(boolean enabled)
enabled - true if tracing is enabled@Inject
public void setSamplerConfiguration(@Nullable
                                            BraveTracerConfiguration.SamplerConfiguration samplerConfiguration)
samplerConfiguration - the configurationpublic brave.Tracing.Builder getTracingBuilder()
@Inject
public void setSampler(@Nullable
                               brave.sampler.Sampler sampler)
sampler - the sampler@Inject
public void setErrorParser(@Nullable
                                   brave.ErrorParser errorParser)
errorParser - the parser@Inject
public void setPropagationFactory(@Nullable
                                          brave.propagation.Propagation.Factory propagationFactory)
propagationFactory - the factory@Inject
public void setClock(@Nullable
                             brave.Clock clock)
clock - the clock@Inject public void setCurrentTraceContext(brave.propagation.CurrentTraceContext traceContext)
traceContext - the context