Package org.apache.camel.main
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
end()
int
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setBacklogSize
(int backlogSize) Defines how many of the last messages to keep in the tracer.void
setBodyIncludeFiles
(boolean bodyIncludeFiles) Whether to include the message body of file based messages.void
setBodyIncludeStreams
(boolean bodyIncludeStreams) Whether to include the message body of stream based messages.void
setBodyMaxChars
(int bodyMaxChars) To limit the message body to a maximum size in the traced message.void
setEnabled
(boolean enabled) Enables tracer in your Camel application.void
setIncludeException
(boolean includeException) Trace messages to include exception if the message failedvoid
setIncludeExchangeProperties
(boolean includeExchangeProperties) Whether to include the exchange properties in the traced messagevoid
setIncludeExchangeVariables
(boolean includeExchangeVariables) Whether to include the exchange variables in the traced messagevoid
setRemoveOnDump
(boolean removeOnDump) Whether all traced messages should be removed when the tracer is dumping.void
setStandby
(boolean standby) To set the tracer in standby mode, where the tracer will be installed by not automatic enabled.void
setTraceFilter
(String traceFilter) Filter for tracing messagesvoid
setTracePattern
(String tracePattern) Filter for tracing by route or node idvoid
setTraceRests
(boolean traceRests) Whether to trace routes that is created from Rest DSL.void
setTraceTemplates
(boolean traceTemplates) Whether to trace routes that is created from route templates or kamelets.withBacklogSize
(int backlogSize) Defines how many of the last messages to keep in the tracer.withBodyIncludeFiles
(boolean bodyIncludeFiles) Whether to include the message body of file based messages.withBodyIncludeStreams
(boolean bodyIncludeStreams) Whether to include the message body of stream based messages.withBodyMaxChars
(int bodyMaxChars) To limit the message body to a maximum size in the traced message.withEnabled
(boolean enabled) Enables tracer in your Camel application.withIncludeException
(boolean includeException) Trace messages to include exception if the message failedwithIncludeExchangeProperties
(boolean includeExchangeProperties) Whether to include the exchange properties in the traced messagewithIncludeExchangeVariables
(boolean includeExchangeVariables) Whether to include the exchange variables in the traced messagewithRemoveOnDump
(boolean removeOnDump) Whether all traced messages should be removed when the tracer is dumping.withStandby
(boolean standby) To set the tracer in standby mode, where the tracer will be installed by not automatic enabled.withTraceFilter
(String traceFilter) Filter for tracing messageswithTracePattern
(String tracePattern) Filter for tracing by route or node idwithTraceRests
(boolean traceRests) Whether to trace routes that is created from Rest DSL.withTraceTemplates
(boolean traceTemplates) Whether to trace routes that is created from route templates or kamelets.
-
Constructor Details
-
TracerConfigurationProperties
-
-
Method Details
-
end
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
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
-
setTracePattern
Filter for tracing by route or node id -
getTraceFilter
-
setTraceFilter
Filter for tracing messages -
withEnabled
Enables tracer in your Camel application. -
withStandby
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
Defines how many of the last messages to keep in the tracer. -
withRemoveOnDump
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
Whether to trace routes that is created from Rest DSL. -
withTraceTemplates
Whether to trace routes that is created from route templates or kamelets. -
withBodyMaxChars
To limit the message body to a maximum size in the traced message. Use 0 or negative value to use unlimited size. -
withBodyIncludeStreams
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
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
Whether to include the exchange variables in the traced message -
withIncludeException
Trace messages to include exception if the message failed -
withTracePattern
Filter for tracing by route or node id -
withTraceFilter
Filter for tracing messages
-