Class OtelConfigurationProperties

java.lang.Object
org.apache.camel.main.OtelConfigurationProperties
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.camel.spi.BootstrapCloseable

@Configurer(extended=true) public class OtelConfigurationProperties extends Object implements org.apache.camel.spi.BootstrapCloseable
Global configuration for OpenTelemetry
  • Constructor Details

  • Method Details

    • end

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
      To enable OpenTelemetry
    • getInstrumentationName

      public String getInstrumentationName()
    • setInstrumentationName

      public void setInstrumentationName(String instrumentationName)
      A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.
    • isEncoding

      public boolean isEncoding()
    • setEncoding

      public void setEncoding(boolean encoding)
      Sets whether the header keys need to be encoded (connector specific) or not. The value is a boolean. Dashes need for instances to be encoded for JMS property keys.
    • getExcludePatterns

      public String getExcludePatterns()
    • setExcludePatterns

      public void setExcludePatterns(String excludePatterns)
      Adds an exclude pattern that will disable tracing for Camel messages that matches the pattern. Multiple patterns can be separated by comma.
    • isTraceProcessors

      public boolean isTraceProcessors()
    • setTraceProcessors

      public void setTraceProcessors(boolean traceProcessors)
      Setting this to true will create new OpenTelemetry Spans for each Camel Processors. Use the excludePattern property to filter out Processors.
    • withInstrumentationName

      public OtelConfigurationProperties withInstrumentationName(String instrumentationName)
      A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.
    • withEnabled

      public OtelConfigurationProperties withEnabled(boolean enabled)
      To enable OpenTelemetry
    • withEncoding

      public OtelConfigurationProperties withEncoding(boolean encoding)
      Sets whether the header keys need to be encoded (connector specific) or not. The value is a boolean. Dashes need for instances to be encoded for JMS property keys.
    • withExcludePatterns

      public OtelConfigurationProperties withExcludePatterns(String excludePatterns)
      Adds an exclude pattern that will disable tracing for Camel messages that matches the pattern. Multiple patterns can be separated by comma.
    • withTraceProcessors

      public OtelConfigurationProperties withTraceProcessors(boolean traceProcessors)
      Setting this to true will create new OpenTelemetry Spans for each Camel Processors. Use the excludePattern property to filter out Processors.