This is an automated email from the ASF dual-hosted git repository.

squakez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit 7c41716a5a059df2336b704f5a71590a7d4c84d5
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Fri May 8 09:27:47 2026 +0200

    feat(starter): enable opentelemetry2 disable processor parameter
---
 .../src/main/docs/opentelemetry2.json                   | 11 +++++++++--
 .../starter/OpenTelemetry2AutoConfiguration.java        |  3 +++
 .../starter/OpenTelemetry2ConfigurationProperties.java  | 17 ++++++++++++++---
 3 files changed, 26 insertions(+), 5 deletions(-)

diff --git 
a/components-starter/camel-opentelemetry2-starter/src/main/docs/opentelemetry2.json
 
b/components-starter/camel-opentelemetry2-starter/src/main/docs/opentelemetry2.json
index 0142a221616..2626b5999ad 100644
--- 
a/components-starter/camel-opentelemetry2-starter/src/main/docs/opentelemetry2.json
+++ 
b/components-starter/camel-opentelemetry2-starter/src/main/docs/opentelemetry2.json
@@ -7,16 +7,23 @@
     }
   ],
   "properties": [
+    {
+      "name": "camel.opentelemetry2.disable-core-processors",
+      "type": "java.lang.Boolean",
+      "description": "Disable any inner core processors (any core DSL 
processor provided in the route, for example `bean`, `log`, ...).",
+      "sourceType": 
"org.apache.camel.opentelemetry2.starter.OpenTelemetry2ConfigurationProperties",
+      "defaultValue": false
+    },
     {
       "name": "camel.opentelemetry2.exclude-patterns",
       "type": "java.lang.String",
-      "description": "Sets exclude pattern(s) that will disable tracing for 
Camel messages that matches the pattern. Multiple patterns can be separated by 
comma.",
+      "description": "Sets exclude pattern(s) that will disable tracing for 
Camel processors that matches the pattern. Multiple patterns can be separated 
by comma.",
       "sourceType": 
"org.apache.camel.opentelemetry2.starter.OpenTelemetry2ConfigurationProperties"
     },
     {
       "name": "camel.opentelemetry2.trace-processors",
       "type": "java.lang.Boolean",
-      "description": "Setting this to true will create new OpenTelemetry Spans 
for each Camel Processors. Use the excludePattern property to filter out 
Processors.",
+      "description": "Setting this to true will create new telemetry spans for 
each Camel custom Processors. Use the excludePattern property to filter out 
Processors.",
       "sourceType": 
"org.apache.camel.opentelemetry2.starter.OpenTelemetry2ConfigurationProperties"
     }
   ],
diff --git 
a/components-starter/camel-opentelemetry2-starter/src/main/java/org/apache/camel/opentelemetry2/starter/OpenTelemetry2AutoConfiguration.java
 
b/components-starter/camel-opentelemetry2-starter/src/main/java/org/apache/camel/opentelemetry2/starter/OpenTelemetry2AutoConfiguration.java
index a04bd50cad5..7bb51dd3f5a 100644
--- 
a/components-starter/camel-opentelemetry2-starter/src/main/java/org/apache/camel/opentelemetry2/starter/OpenTelemetry2AutoConfiguration.java
+++ 
b/components-starter/camel-opentelemetry2-starter/src/main/java/org/apache/camel/opentelemetry2/starter/OpenTelemetry2AutoConfiguration.java
@@ -41,6 +41,9 @@ public class OpenTelemetry2AutoConfiguration {
         if (config.getTraceProcessors() != null ) {
             ottracer.setTraceProcessors(config.getTraceProcessors());
         }
+        if (config.getDisableCoreProcessors() != null ) {
+            
ottracer.setDisableCoreProcessors(config.getDisableCoreProcessors());
+        }
         ottracer.init(camelContext);
 
         return ottracer;
diff --git 
a/components-starter/camel-opentelemetry2-starter/src/main/java/org/apache/camel/opentelemetry2/starter/OpenTelemetry2ConfigurationProperties.java
 
b/components-starter/camel-opentelemetry2-starter/src/main/java/org/apache/camel/opentelemetry2/starter/OpenTelemetry2ConfigurationProperties.java
index 81770bdd0dd..c367ca57d14 100644
--- 
a/components-starter/camel-opentelemetry2-starter/src/main/java/org/apache/camel/opentelemetry2/starter/OpenTelemetry2ConfigurationProperties.java
+++ 
b/components-starter/camel-opentelemetry2-starter/src/main/java/org/apache/camel/opentelemetry2/starter/OpenTelemetry2ConfigurationProperties.java
@@ -22,16 +22,19 @@ import 
org.springframework.boot.context.properties.ConfigurationProperties;
 public class OpenTelemetry2ConfigurationProperties {
 
     /**
-     * Sets exclude pattern(s) that will disable tracing for Camel messages 
that matches the pattern. Multiple patterns
+     * Sets exclude pattern(s) that will disable tracing for Camel processors 
that matches the pattern. Multiple patterns
      * can be separated by comma.
      */
     private String excludePatterns;
-
     /**
-     * Setting this to true will create new OpenTelemetry Spans for each Camel 
Processors. Use the excludePattern
+     * Setting this to true will create new telemetry spans for each Camel 
custom Processors. Use the excludePattern
      * property to filter out Processors.
      */
     private Boolean traceProcessors;
+    /**
+     * Disable any inner core processors (any core DSL processor provided in 
the route, for example `bean`, `log`, ...).
+     */
+    private boolean disableCoreProcessors;
 
     public Boolean getTraceProcessors() {
         return traceProcessors;
@@ -41,6 +44,14 @@ public class OpenTelemetry2ConfigurationProperties {
         this.traceProcessors = traceProcessors;
     }
 
+    public Boolean getDisableCoreProcessors() {
+        return disableCoreProcessors;
+    }
+
+    public void setDisableCoreProcessors(Boolean disableCoreProcessors) {
+        this.disableCoreProcessors = disableCoreProcessors;
+    }
+
     public String getExcludePatterns() {
         return excludePatterns;
     }

Reply via email to