Quantcast
Channel: Martin Fournier
Viewing all articles
Browse latest Browse all 23

Calculate time spent running a flow with mulesoft

$
0
0

The component “timer-interceptor” is a great tool to get how much time it takes for a flow to complete. All you need to do is put it somewhere in the flow and it will output something like this in the logs…

1
INFO  2017-11-04 00:29:08,080 [[testme].HTTP_Listener_Configuration.worker.01] org.mule.interceptor.TimerInterceptor: TheBestFlowInTheWorld took 5678ms to process event [0-af604fb0-c118-11e7-a1d9-0023dffdea0a]
1
2
3
4
5
6
<flow name="TheBestFlowInTheWorld">
        <http:listener config-ref="HTTP_Listener_Configuration" path="/helloworld" doc:name="HTTP" allowedMethods="GET"/>
        <timer-interceptor doc:name="Flow Timer"></timer-interceptor>
        <http:request config-ref="HTTP_Request_Configuration" path="/59fd3ba7310000f51f4fc7c2" method="GET" doc:name="HTTP"/>
        <custom-transformer class="testme.HelloWorldTransformer" doc:name="Java"/>
</flow>

The post Calculate time spent running a flow with mulesoft appeared first on Martin Fournier.


Viewing all articles
Browse latest Browse all 23

Trending Articles