[
https://issues.apache.org/jira/browse/CAMEL-22560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Federico Mariani resolved CAMEL-22560.
--------------------------------------
Resolution: Fixed
> 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
> Affects Versions: 4.14.1, 4.15.0
> Reporter: Federico Mariani
> Assignee: Federico Mariani
> Priority: Major
> Fix For: 4.14.2, 4.16.0
>
>
> 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)