aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/scala/kamon/instrumentation
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2014-08-02 17:36:26 -0300
committerIvan Topolnjak <ivantopo@gmail.com>2014-08-02 17:36:26 -0300
commite4ff86c82955961f07faa774b2591947055b8b7f (patch)
tree40759c49f68df1d9b1c7359b0f0923514d2edaff /kamon-core/src/main/scala/kamon/instrumentation
parent97d299613bd725540e5279708ecfcade59dcda70 (diff)
downloadKamon-e4ff86c82955961f07faa774b2591947055b8b7f.tar.gz
Kamon-e4ff86c82955961f07faa774b2591947055b8b7f.tar.bz2
Kamon-e4ff86c82955961f07faa774b2591947055b8b7f.zip
= core: cleanup actor metrics recorder after the actor is stopped, closes #69
Diffstat (limited to 'kamon-core/src/main/scala/kamon/instrumentation')
-rw-r--r--kamon-core/src/main/scala/kamon/instrumentation/akka/ActorCellInstrumentation.scala2
1 files changed, 0 insertions, 2 deletions
diff --git a/kamon-core/src/main/scala/kamon/instrumentation/akka/ActorCellInstrumentation.scala b/kamon-core/src/main/scala/kamon/instrumentation/akka/ActorCellInstrumentation.scala
index 5fce4555..446bc487 100644
--- a/kamon-core/src/main/scala/kamon/instrumentation/akka/ActorCellInstrumentation.scala
+++ b/kamon-core/src/main/scala/kamon/instrumentation/akka/ActorCellInstrumentation.scala
@@ -82,7 +82,6 @@ class ActorCellInstrumentation {
val cellWithMetrics = cell.asInstanceOf[ActorCellMetrics]
cellWithMetrics.actorMetricsRecorder.map { p ⇒
- cellWithMetrics.mailboxSizeCollectorCancellable.cancel()
Kamon(Metrics)(cell.system).unregister(cellWithMetrics.metricIdentity)
}
}
@@ -103,7 +102,6 @@ class ActorCellInstrumentation {
trait ActorCellMetrics {
var metricIdentity: ActorMetrics = _
var actorMetricsRecorder: Option[ActorMetricsRecorder] = _
- var mailboxSizeCollectorCancellable: Cancellable = _
}
@Aspect