[ 
https://issues.apache.org/jira/browse/CAMEL-23111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bartosz Popiela updated CAMEL-23111:
------------------------------------
    Description: 
When running Camel JBang, any YAML parsing errors are handled in 
{{picocli.CommandLine#handleUnhandled}} and printed to {{{}System.err{}}}. As a 
result, these exceptions are not captured by OTEL-compliant monitoring systems 
(e.g., Grafana).

Failing YAML:
{code:java}
- route:
    nodePrefixId: route-b8d
    from:
      uri: timer
      parameters:
        delay: "0"
        timerName: oneTimeTimer
        repeatCount: "1"
      steps:
        - log1:
            id: abc
            message: "${body}" {code}

  was:
When running Camel JBang, any YAML parsing errors are handled in 
{{picocli.CommandLine#handleUnhandled}} and printed to {{{}System.err{}}}. As a 
result, these exceptions are not captured by OTEL-compliant monitoring systems 
(e.g., Grafana).

Failing YAML
{code:java}
- route:
    nodePrefixId: route-b8d
    from:
      uri: timer
      parameters:
        delay: "0"
        timerName: oneTimeTimer
        repeatCount: "1"
      steps:
        - log1:
            id: abc
            message: "${body}" {code}


> YAML parsing errors not published to OTEL
> -----------------------------------------
>
>                 Key: CAMEL-23111
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23111
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>    Affects Versions: 4.10.9, 4.14.5, 4.18.0
>            Reporter: Bartosz Popiela
>            Priority: Major
>
> When running Camel JBang, any YAML parsing errors are handled in 
> {{picocli.CommandLine#handleUnhandled}} and printed to {{{}System.err{}}}. As 
> a result, these exceptions are not captured by OTEL-compliant monitoring 
> systems (e.g., Grafana).
> Failing YAML:
> {code:java}
> - route:
>     nodePrefixId: route-b8d
>     from:
>       uri: timer
>       parameters:
>         delay: "0"
>         timerName: oneTimeTimer
>         repeatCount: "1"
>       steps:
>         - log1:
>             id: abc
>             message: "${body}" {code}



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

Reply via email to