Skip to content
Browse files

close metrics

  • Loading branch information...
1 parent 0925535 commit 51a51a8c44e17225b5a2b632d2e3a19393963cb5 Robert Newson committed Jul 13, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/scala/scalang/Process.scala
View
6 src/main/scala/scalang/Process.scala
@@ -111,6 +111,12 @@ abstract class Process(ctx : ProcessContext) extends ProcessLike with Logging wi
msgChannel.publish(msg)
}
+ override def exit(msg : Any) {
+ super.exit(msg)
+ metricsRegistry.removeMetric(getClass, "messages", instrumentedName)
+ metricsRegistry.removeMetric(getClass, "execution", instrumentedName)
+ }
+
override def handleExit(from : Pid, msg : Any) {
exitChannel.publish((from,msg))
}

0 comments on commit 51a51a8

Please sign in to comment.
Something went wrong with that request. Please try again.