@ConfigurationProperties(value="tracing.jaeger") public class JaegerConfiguration extends java.lang.Object implements Toggleable
Modifier and Type | Class and Description |
---|---|
static class |
JaegerConfiguration.JaegerReporterConfiguration
The reporter configuration bean.
|
static class |
JaegerConfiguration.JaegerSamplerConfiguration
The sampler configuration bean.
|
static class |
JaegerConfiguration.JaegerSenderConfiguration
The sender configuration bean.
|
Modifier and Type | Field and Description |
---|---|
protected io.jaegertracing.Configuration |
configuration |
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
PREFIX
The configuration prefix.
|
Constructor and Description |
---|
JaegerConfiguration(ApplicationConfiguration applicationConfiguration)
Initialize Jaeger with common application configurations.
|
Modifier and Type | Method and Description |
---|---|
io.jaegertracing.Configuration |
getConfiguration() |
boolean |
isEnabled() |
boolean |
isExpandExceptionLogs() |
boolean |
isZipkinSharedRpcSpan() |
void |
setCodecConfiguration(io.jaegertracing.Configuration.CodecConfiguration codecConfiguration)
Sets the codec configuration.
|
void |
setEnabled(boolean enabled)
Enable/Disable Jaeger.
|
void |
setExpandExceptionLogs(boolean expandExceptionLogs)
Whether to expand exception logs.
|
void |
setReporterConfiguration(io.jaegertracing.Configuration.ReporterConfiguration reporterConfiguration)
Sets the reporter configuration.
|
void |
setReporterConfiguration(JaegerConfiguration.JaegerReporterConfiguration reporterConfiguration)
Sets the reporter configuration.
|
void |
setSamplerConfiguration(io.jaegertracing.Configuration.SamplerConfiguration samplerConfiguration)
Sets the sampler configuration.
|
void |
setSamplerConfiguration(JaegerConfiguration.JaegerSamplerConfiguration samplerConfiguration)
Sets the sampler configuration.
|
void |
setZipkinSharedRpcSpan(boolean zipkinSharedRpcSpan)
Whether to use Zipkin shared RPC.
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
@ConfigurationBuilder(prefixes="with", includes="tracerTags") protected final io.jaegertracing.Configuration configuration
public JaegerConfiguration(ApplicationConfiguration applicationConfiguration)
applicationConfiguration
- The common application configurationspublic boolean isExpandExceptionLogs()
public void setExpandExceptionLogs(boolean expandExceptionLogs)
expandExceptionLogs
- True if they should be expandedpublic boolean isZipkinSharedRpcSpan()
public void setZipkinSharedRpcSpan(boolean zipkinSharedRpcSpan)
zipkinSharedRpcSpan
- True if Zipkin shared RPC should be usedpublic boolean isEnabled()
isEnabled
in interface Toggleable
public void setEnabled(boolean enabled)
enabled
- A boolean to enable/disabled Jaegerpublic io.jaegertracing.Configuration getConfiguration()
Configuration
object@Inject public void setSamplerConfiguration(@Nullable io.jaegertracing.Configuration.SamplerConfiguration samplerConfiguration)
samplerConfiguration
- The sampler configuration@Inject public void setReporterConfiguration(@Nullable io.jaegertracing.Configuration.ReporterConfiguration reporterConfiguration)
reporterConfiguration
- The reporter configuration@Inject public void setSamplerConfiguration(@Nullable JaegerConfiguration.JaegerSamplerConfiguration samplerConfiguration)
samplerConfiguration
- The sampler configuration@Inject public void setReporterConfiguration(@Nullable JaegerConfiguration.JaegerReporterConfiguration reporterConfiguration)
reporterConfiguration
- The reporter configuration@Inject public void setCodecConfiguration(@Nullable io.jaegertracing.Configuration.CodecConfiguration codecConfiguration)
codecConfiguration
- The codec configuration