KB Article #189082

measuring the time taken by the WS call in a WebServices DML map

Problem

-- because WS calls made from DML maps block the procengine completely until the reply is received (actually until the dml map completes), and no other messages are processed in that PE during the call, it may be useful to have stats about how much time WS calls take to complete.

Resolution

* to have in logs the time it take for the webservices calls to receive the reply :

- add in Interchange/conf/log4j2.xml the following:
<Logger name="com.cyclonecommerce.tradingengine.transport.http.HttpResponseReader" level="DEBUG"/>

- grep the TE logs(in Interchange/logs folder) for text "HTTP response received after"

Note: This setting may add details in logs for more than WS calls. Also the amount of Interchange logs may increase a lot depending on scenario.
As a result it should be activated first on test environment to check that the amount of logs is acceptable also for production and also to check that if some information which is sensitive/private/confidential is not contained in logs (and is not acceptable to be in logs).