Re: Retrieving time taken to invoke a remote endpoint
perhaps you can take a look at creating a interceptor to do that.
On Thu, Nov 8, 2018 at 2:16 PM, Rajith Muditha Attapattu
> 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.
> Rajith <http://rajith.2rlabs.com/>