Currently we're using Apache Camel (with Spring Boot) as an Integration platform. We have multiple backend systems to integrate. Mostly we use Apache CXF and CXF RS to call to those systems.
We'd like to log how much time we wait for the backend systems, and how much overhead is put on by our application.
We've created an EventNotifierSupport
bean, where we can log the following:
The time between the
ExchangeCreatedEvent
and theExchangeCompletedEvent
events. I think this is the full time approximately it takes to serve the request. (full time as our overhead and the backend system's time)And I can log the
timeTaken
property of theExchangeSentEvent
˙notification.
I have a problem with the latter. Under high load it takes pretty much time for our application to process the SOAP response and this time is included into the timeTaken
property.
What's the proper Camel-way to measure the time we wait for backend systems?