Package io.micronaut.tracing.jaeger
Class JaegerConfiguration
java.lang.Object
io.micronaut.tracing.jaeger.JaegerConfiguration
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
@ConfigurationProperties("tracing.jaeger")
public class JaegerConfiguration
extends Object
implements io.micronaut.core.util.Toggleable
Configuration for Jaeger tracing.
- Since:
- 1.0
- Author:
- graemerocher
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The reporter configuration bean.static class
The sampler configuration bean.static class
The sender configuration bean. -
Field Summary
Modifier and TypeFieldDescriptionprotected final io.jaegertracing.Configuration
static final boolean
The default enable value.static final String
The configuration prefix. -
Constructor Summary
ConstructorDescriptionJaegerConfiguration
(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionio.jaegertracing.Configuration
boolean
boolean
boolean
void
setCodecConfiguration
(@Nullable io.jaegertracing.Configuration.CodecConfiguration codecConfiguration) Sets the codec configuration.void
Set codecs from comma-delimited string.void
setEnabled
(boolean enabled) Enable/disable Jaeger.void
setExpandExceptionLogs
(boolean expandExceptionLogs) Whether to expand exception logs.void
setReporterConfiguration
(@Nullable io.jaegertracing.Configuration.ReporterConfiguration reporterConfiguration) Sets the reporter configuration.void
setReporterConfiguration
(@Nullable JaegerConfiguration.JaegerReporterConfiguration reporterConfiguration) Sets the reporter configuration.void
setSamplerConfiguration
(@Nullable io.jaegertracing.Configuration.SamplerConfiguration samplerConfiguration) Sets the sampler configuration.void
setSamplerConfiguration
(@Nullable JaegerConfiguration.JaegerSamplerConfiguration samplerConfiguration) Sets the sampler configuration.void
setZipkinSharedRpcSpan
(boolean zipkinSharedRpcSpan) Whether to use Zipkin shared RPC.
-
Field Details
-
PREFIX
The configuration prefix.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
configuration
@ConfigurationBuilder(prefixes="with", includes="tracerTags") protected final io.jaegertracing.Configuration configuration
-
-
Constructor Details
-
JaegerConfiguration
public JaegerConfiguration(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration) - Parameters:
applicationConfiguration
- the common configurations
-
-
Method Details
-
isExpandExceptionLogs
public boolean isExpandExceptionLogs()- Returns:
- whether to expand exception logs
-
setExpandExceptionLogs
public void setExpandExceptionLogs(boolean expandExceptionLogs) Whether to expand exception logs.- Parameters:
expandExceptionLogs
- true if they should be expanded
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) Enable/disable Jaeger. Default value (false).- Parameters:
enabled
- true to enable Jaeger
-
getConfiguration
public io.jaegertracing.Configuration getConfiguration()- Returns:
- the Jaeger
Configuration
-
setSamplerConfiguration
@Inject public void setSamplerConfiguration(@Nullable @Nullable io.jaegertracing.Configuration.SamplerConfiguration samplerConfiguration) Sets the sampler configuration.- Parameters:
samplerConfiguration
- the configuration
-
setReporterConfiguration
@Inject public void setReporterConfiguration(@Nullable @Nullable io.jaegertracing.Configuration.ReporterConfiguration reporterConfiguration) Sets the reporter configuration.- Parameters:
reporterConfiguration
- the configuration
-
setSamplerConfiguration
@Inject public void setSamplerConfiguration(@Nullable @Nullable JaegerConfiguration.JaegerSamplerConfiguration samplerConfiguration) Sets the sampler configuration.- Parameters:
samplerConfiguration
- the configuration
-
setReporterConfiguration
@Inject public void setReporterConfiguration(@Nullable @Nullable JaegerConfiguration.JaegerReporterConfiguration reporterConfiguration) Sets the reporter configuration.- Parameters:
reporterConfiguration
- the configuration
-
setCodecConfiguration
@Inject public void setCodecConfiguration(@Nullable @Nullable io.jaegertracing.Configuration.CodecConfiguration codecConfiguration) Sets the codec configuration.- Parameters:
codecConfiguration
- the configuration
-
setCodecs
Set codecs from comma-delimited string.- Parameters:
codecs
- the codecs
-