You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by vivekrao001 <vi...@gmail.com> on 2015/10/21 20:51:06 UTC

Camel Metrics during Exception

Hi,

I have a question regarding the metrics, for the following route :

from("direct:in")
    .to("metrics:timer:simple.timer?action=start")
    .to("*direct:calculate*")
    .to("metrics:timer:simple.timer?action=stop");

If the *direct:calculate* raises an exception, what would be the
consequences, should we try to stop the timer in exception block? And the
timer will not stop until a new request pass through?

Any suggestion is greatly appreciated.



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Metrics-during-Exception-tp5772948.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Metrics during Exception

Posted by vivekrao001 <vi...@gmail.com>.
If we don't stop the timer, does the thread will get stuck and result in
memory leaks? Could somebody please help.



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Metrics-during-Exception-tp5772948p5773119.html
Sent from the Camel - Users mailing list archive at Nabble.com.