[
https://issues.apache.org/jira/browse/CAMEL-22560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18030265#comment-18030265
]
Pasquale Congiusti commented on CAMEL-22560:
--------------------------------------------
Indeed, this is a bug. Thanks for taking care!
> 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: Bug
> Reporter: Federico Mariani
> Priority: Major
>
> 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)