Class TracerConfigurationProperties

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

@Configurer(bootstrap=true) public class TracerConfigurationProperties extends Object implements org.apache.camel.spi.BootstrapCloseable
Tracer configuration.
  • 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)
      Enables tracer in your Camel application.
    • isStandby

      public boolean isStandby()
    • setStandby

      public void setStandby(boolean standby)
      To set the tracer in standby mode, where the tracer will be installed by not automatic enabled. The tracer can then later be enabled explicit from Java, JMX or tooling.
    • getBacklogSize

      public int getBacklogSize()
    • setBacklogSize

      public void setBacklogSize(int backlogSize)
      Defines how many of the last messages to keep in the tracer.
    • isRemoveOnDump

      public boolean isRemoveOnDump()
    • setRemoveOnDump

      public void setRemoveOnDump(boolean removeOnDump)
      Whether all traced messages should be removed when the tracer is dumping. By default, the messages are removed, which means that dumping will not contain previous dumped messages.
    • getBodyMaxChars

      public int getBodyMaxChars()
    • setBodyMaxChars

      public void setBodyMaxChars(int bodyMaxChars)
      To limit the message body to a maximum size in the traced message. Use 0 or negative value to use unlimited size.
    • isBodyIncludeStreams

      public boolean isBodyIncludeStreams()
    • setBodyIncludeStreams

      public void setBodyIncludeStreams(boolean bodyIncludeStreams)
      Whether to include the message body of stream based messages. If enabled then beware the stream may not be re-readable later. See more about Stream Caching.
    • isBodyIncludeFiles

      public boolean isBodyIncludeFiles()
    • setBodyIncludeFiles

      public void setBodyIncludeFiles(boolean bodyIncludeFiles)
      Whether to include the message body of file based messages. The overhead is that the file content has to be read from the file.
    • isIncludeExchangeProperties

      public boolean isIncludeExchangeProperties()
    • setIncludeExchangeProperties

      public void setIncludeExchangeProperties(boolean includeExchangeProperties)
      Whether to include the exchange properties in the traced message
    • isIncludeExchangeVariables

      public boolean isIncludeExchangeVariables()
    • setIncludeExchangeVariables

      public void setIncludeExchangeVariables(boolean includeExchangeVariables)
      Whether to include the exchange variables in the traced message
    • isIncludeException

      public boolean isIncludeException()
    • setIncludeException

      public void setIncludeException(boolean includeException)
      Trace messages to include exception if the message failed
    • isTraceRests

      public boolean isTraceRests()
    • setTraceRests

      public void setTraceRests(boolean traceRests)
      Whether to trace routes that is created from Rest DSL.
    • isTraceTemplates

      public boolean isTraceTemplates()
    • setTraceTemplates

      public void setTraceTemplates(boolean traceTemplates)
      Whether to trace routes that is created from route templates or kamelets.
    • getTracePattern

      public String getTracePattern()
    • setTracePattern

      public void setTracePattern(String tracePattern)
      Filter for tracing by route or node id
    • getTraceFilter

      public String getTraceFilter()
    • setTraceFilter

      public void setTraceFilter(String traceFilter)
      Filter for tracing messages
    • withEnabled

      public TracerConfigurationProperties withEnabled(boolean enabled)
      Enables tracer in your Camel application.
    • withStandby

      public TracerConfigurationProperties withStandby(boolean standby)
      To set the tracer in standby mode, where the tracer will be installed by not automatic enabled. The tracer can then later be enabled explicit from Java, JMX or tooling.
    • withBacklogSize

      public TracerConfigurationProperties withBacklogSize(int backlogSize)
      Defines how many of the last messages to keep in the tracer.
    • withRemoveOnDump

      public TracerConfigurationProperties withRemoveOnDump(boolean removeOnDump)
      Whether all traced messages should be removed when the tracer is dumping. By default, the messages are removed, which means that dumping will not contain previous dumped messages.
    • withTraceRests

      public TracerConfigurationProperties withTraceRests(boolean traceRests)
      Whether to trace routes that is created from Rest DSL.
    • withTraceTemplates

      public TracerConfigurationProperties withTraceTemplates(boolean traceTemplates)
      Whether to trace routes that is created from route templates or kamelets.
    • withBodyMaxChars

      public TracerConfigurationProperties withBodyMaxChars(int bodyMaxChars)
      To limit the message body to a maximum size in the traced message. Use 0 or negative value to use unlimited size.
    • withBodyIncludeStreams

      public TracerConfigurationProperties withBodyIncludeStreams(boolean bodyIncludeStreams)
      Whether to include the message body of stream based messages. If enabled then beware the stream may not be re-readable later. See more about Stream Caching.
    • withBodyIncludeFiles

      public TracerConfigurationProperties withBodyIncludeFiles(boolean bodyIncludeFiles)
      Whether to include the message body of file based messages. The overhead is that the file content has to be read from the file.
    • withIncludeExchangeProperties

      public TracerConfigurationProperties withIncludeExchangeProperties(boolean includeExchangeProperties)
      Whether to include the exchange properties in the traced message
    • withIncludeExchangeVariables

      public TracerConfigurationProperties withIncludeExchangeVariables(boolean includeExchangeVariables)
      Whether to include the exchange variables in the traced message
    • withIncludeException

      public TracerConfigurationProperties withIncludeException(boolean includeException)
      Trace messages to include exception if the message failed
    • withTracePattern

      public TracerConfigurationProperties withTracePattern(String tracePattern)
      Filter for tracing by route or node id
    • withTraceFilter

      public TracerConfigurationProperties withTraceFilter(String traceFilter)
      Filter for tracing messages