You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Roberto (Jira)" <ji...@apache.org> on 2022/03/31 13:32:00 UTC

[jira] [Created] (CAMEL-17889) camel.routeId removed from MDCs

Roberto created CAMEL-17889:
-------------------------------

             Summary: camel.routeId removed from MDCs
                 Key: CAMEL-17889
                 URL: https://issues.apache.org/jira/browse/CAMEL-17889
             Project: Camel
          Issue Type: Bug
    Affects Versions: 3.14.2
            Reporter: Roberto


If in a route I throw an exception, when Camel processes the onException camel.routeId is no longer present in the MDCs.

 

<route id="testMDC">
    <from uri="timer://testMDCTimer?period=10000" />
    <log loggingLevel="INFO" message="BeforeException" />
    <throwException message="Test Exception" exceptionType="java.lang.IllegalArgumentException"/>
    <onException>
        <exception>java.lang.Exception</exception>
        <handled><constant>true</constant></handled>
        <log loggingLevel="INFO" message="onException" />
    </onException>
</route>



--
This message was sent by Atlassian Jira
(v8.20.1#820001)