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
  • Field Details

    • PREFIX

      public static final String PREFIX
      The configuration prefix.
      See Also:
    • DEFAULT_ENABLED

      public static final boolean DEFAULT_ENABLED
      The 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
    • isZipkinSharedRpcSpan

      public boolean isZipkinSharedRpcSpan()
      Returns:
      whether to use Zipkin shared RPC
    • setZipkinSharedRpcSpan

      public void setZipkinSharedRpcSpan(boolean zipkinSharedRpcSpan)
      Whether to use Zipkin shared RPC.
      Parameters:
      zipkinSharedRpcSpan - true to use Zipkin shared RPC
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.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

      public void setCodecs(String codecs)
      Set codecs from comma-delimited string.
      Parameters:
      codecs - the codecs