You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Federico Mariani (Jira)" <ji...@apache.org> on 2025/07/07 11:25:00 UTC
[jira] [Comment Edited] (CAMEL-22215) camel-core - Interceptor EIPs should include more information where the interception happened
[ https://issues.apache.org/jira/browse/CAMEL-22215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18003473#comment-18003473 ]
Federico Mariani edited comment on CAMEL-22215 at 7/7/25 11:24 AM:
-------------------------------------------------------------------
Thanks for the input, so far this is what I got:
{code:java}
intercept()
.log("Route ID: ${exchange.properties[camel.interceptor.routeId]}")
.log("Node ID: ${exchange.properties[camel.interceptor.nodeId]}")
.log("Endpoint URI: ${exchange.properties[camel.interceptor.endpointUri]}");
route1()..
route2()..
{code}
the following is logged:
{code:java}
2025-07-07 13:23:03.315 INFO 13743 --- [ - timer://java] test-timer : Route ID: test-timer
2025-07-07 13:23:03.316 INFO 13743 --- [ - timer://java] test-timer : Node ID: process1
2025-07-07 13:23:03.316 INFO 13743 --- [ - timer://java] test-timer : Endpoint URI: Route[timer:java?period=1000]
2025-07-07 13:23:03.316 INFO 13743 --- [ - timer://java] test-timer : Route ID: test-timer
2025-07-07 13:23:03.317 INFO 13743 --- [ - timer://java] test-timer : Node ID: setBody1
2025-07-07 13:23:03.317 INFO 13743 --- [ - timer://java] test-timer : Endpoint URI: Route[timer:java?period=1000]
2025-07-07 13:23:03.325 INFO 13743 --- [ - timer://java] second-timer : Route ID: second-timer
2025-07-07 13:23:03.325 INFO 13743 --- [ - timer://java] second-timer : Node ID: process2
2025-07-07 13:23:03.325 INFO 13743 --- [ - timer://java] second-timer : Endpoint URI: Route[timer:java?period=2000]
2025-07-07 13:23:03.326 INFO 13743 --- [ - timer://java] second-timer : Route ID: second-timer
2025-07-07 13:23:03.326 INFO 13743 --- [ - timer://java] second-timer : Node ID: setBody2
2025-07-07 13:23:03.326 INFO 13743 --- [ - timer://java] second-timer : Endpoint URI: Route[timer:java?period=2000]
{code}
was (Author: federico mariani):
Thanks for the input, so far this is what I got:
{code:java}
intercept()
.log("${exchange.properties[camel.interceptor.routeId]}")
.log("${exchange.properties[camel.interceptor.nodeId]}")
.log("${exchange.properties[camel.interceptor.endpointUri]}");
route1()..
route2()..
{code}
the following is logged:
{code:java}
2025-07-07 13:23:03.315 INFO 13743 --- [ - timer://java] test-timer : Route ID: test-timer
2025-07-07 13:23:03.316 INFO 13743 --- [ - timer://java] test-timer : Node ID: process1
2025-07-07 13:23:03.316 INFO 13743 --- [ - timer://java] test-timer : Endpoint URI: Route[timer:java?period=1000]
2025-07-07 13:23:03.316 INFO 13743 --- [ - timer://java] test-timer : Route ID: test-timer
2025-07-07 13:23:03.317 INFO 13743 --- [ - timer://java] test-timer : Node ID: setBody1
2025-07-07 13:23:03.317 INFO 13743 --- [ - timer://java] test-timer : Endpoint URI: Route[timer:java?period=1000]
2025-07-07 13:23:03.325 INFO 13743 --- [ - timer://java] second-timer : Route ID: second-timer
2025-07-07 13:23:03.325 INFO 13743 --- [ - timer://java] second-timer : Node ID: process2
2025-07-07 13:23:03.325 INFO 13743 --- [ - timer://java] second-timer : Endpoint URI: Route[timer:java?period=2000]
2025-07-07 13:23:03.326 INFO 13743 --- [ - timer://java] second-timer : Route ID: second-timer
2025-07-07 13:23:03.326 INFO 13743 --- [ - timer://java] second-timer : Node ID: setBody2
2025-07-07 13:23:03.326 INFO 13743 --- [ - timer://java] second-timer : Endpoint URI: Route[timer:java?period=2000]
{code}
> camel-core - Interceptor EIPs should include more information where the interception happened
> ---------------------------------------------------------------------------------------------
>
> Key: CAMEL-22215
> URL: https://issues.apache.org/jira/browse/CAMEL-22215
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Federico Mariani
> Priority: Major
> Fix For: 4.14.0
>
>
> The intercept EIPs store a bit information but we need to store
> * route id
> * node id
> * endpoint url
> Where it was intercepted. Currently it lacks some of that, and also we should make this concistent across the 3 interceptors
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)