You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2024/02/11 11:16:26 UTC
(camel-spring-boot) branch main updated: CAMEL-20408: camel-core - Tracer should include exchange variables
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new 0766fcbca04 CAMEL-20408: camel-core - Tracer should include exchange variables
0766fcbca04 is described below
commit 0766fcbca04d90dca23b5764264d4caa2ebf3841
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Feb 11 11:39:49 2024 +0100
CAMEL-20408: camel-core - Tracer should include exchange variables
---
core/camel-spring-boot/src/main/docs/spring-boot.json | 7 +++++++
.../spring/boot/debug/CamelDebugAutoConfiguration.java | 1 +
.../boot/debug/CamelDebugConfigurationProperties.java | 13 +++++++++++++
3 files changed, 21 insertions(+)
diff --git a/core/camel-spring-boot/src/main/docs/spring-boot.json b/core/camel-spring-boot/src/main/docs/spring-boot.json
index 8ddf6bb8106..3379205dee8 100644
--- a/core/camel-spring-boot/src/main/docs/spring-boot.json
+++ b/core/camel-spring-boot/src/main/docs/spring-boot.json
@@ -486,6 +486,13 @@
"sourceType": "org.apache.camel.spring.boot.debug.CamelDebugConfigurationProperties",
"defaultValue": true
},
+ {
+ "name": "camel.debug.include-exchange-variables",
+ "type": "java.lang.Boolean",
+ "description": "Whether to include the exchange variables in the traced message",
+ "sourceType": "org.apache.camel.spring.boot.debug.CamelDebugConfigurationProperties",
+ "defaultValue": true
+ },
{
"name": "camel.debug.logging-level",
"type": "org.apache.camel.LoggingLevel",
diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugAutoConfiguration.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugAutoConfiguration.java
index 906857178ee..51b49ddb611 100644
--- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugAutoConfiguration.java
+++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugAutoConfiguration.java
@@ -54,6 +54,7 @@ public class CamelDebugAutoConfiguration {
debugger.setBodyIncludeStreams(config.isBodyIncludeStreams());
debugger.setBodyIncludeFiles(config.isBodyIncludeFiles());
debugger.setIncludeExchangeProperties(config.isIncludeExchangeProperties());
+ debugger.setIncludeExchangeVariables(config.isIncludeExchangeVariables());
debugger.setIncludeException(config.isIncludeException());
debugger.setLoggingLevel(config.getLoggingLevel().name());
debugger.setSuspendMode(config.isWaitForAttach());
diff --git a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugConfigurationProperties.java b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugConfigurationProperties.java
index 329f729e100..01368824225 100644
--- a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugConfigurationProperties.java
+++ b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/debug/CamelDebugConfigurationProperties.java
@@ -83,6 +83,11 @@ public class CamelDebugConfigurationProperties {
*/
private boolean includeExchangeProperties = true;
+ /**
+ * Whether to include the exchange variables in the traced message
+ */
+ private boolean includeExchangeVariables = true;
+
/**
* Trace messages to include exception if the message failed
*/
@@ -175,6 +180,14 @@ public class CamelDebugConfigurationProperties {
this.includeExchangeProperties = includeExchangeProperties;
}
+ public boolean isIncludeExchangeVariables() {
+ return includeExchangeVariables;
+ }
+
+ public void setIncludeExchangeVariables(boolean includeExchangeVariables) {
+ this.includeExchangeVariables = includeExchangeVariables;
+ }
+
public boolean isIncludeException() {
return includeException;
}