Federico Mariani created CAMEL-22560:
----------------------------------------

             Summary: camel-telemetry - excludePatterns incorrectly prevents 
execution of excluded steps
                 Key: CAMEL-22560
                 URL: https://issues.apache.org/jira/browse/CAMEL-22560
             Project: Camel
          Issue Type: Improvement
            Reporter: Federico Mariani


When using {{excludePatterns}} in OpenTelemetry2 configuration, matched steps 
are not executed at all instead of being skipped only from instrumentation. 
This prevents critical route logic from running.

When using excludePatterns, for example 
_camel.opentelemetry2.excludePatterns=setVariable*_ a route like


{code:java}
from("direct:start")
.setVariable("myVar", constant("testValue"))
.to("direct:second");{code}
 
does not set the variable (the execution is excluded).

The {{setVariable()}} step should execute normally and set the variable as 
intended. The step should only be excluded from OpenTelemetry span 
instrumentation, not from execution.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to