Retrieving time taken to invoke a remote endpoint
Assume a route as follows
I was wondering if there's a way to retrieve the time taken to invoke the
remote endpoint so it can be logged in the next step?
I'm aware that we can define an id for that step and use jmx or we can use
an event listener and use getTimeTaken() on the EXCHANGE_SENT event.
But in both cases we have to deal with all event/metrics to get the one we
Additionally we want to log the time taken with other data related to that
particular exchange which will not be visible in the other approaches.
Any guidance is much appreciated.