diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-08-02 17:36:26 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-08-02 17:36:26 -0300 |
commit | e4ff86c82955961f07faa774b2591947055b8b7f (patch) | |
tree | 40759c49f68df1d9b1c7359b0f0923514d2edaff /kamon-core/src/main/scala/kamon/metric/MetricsExtension.scala | |
parent | 97d299613bd725540e5279708ecfcade59dcda70 (diff) | |
download | Kamon-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/metric/MetricsExtension.scala')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metric/MetricsExtension.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/MetricsExtension.scala b/kamon-core/src/main/scala/kamon/metric/MetricsExtension.scala index 00214f51..51cda6b2 100644 --- a/kamon-core/src/main/scala/kamon/metric/MetricsExtension.scala +++ b/kamon-core/src/main/scala/kamon/metric/MetricsExtension.scala @@ -52,7 +52,7 @@ class MetricsExtension(system: ExtendedActorSystem) extends Kamon.Extension { } def unregister(identity: MetricGroupIdentity): Unit = { - storage.remove(identity) + storage.remove(identity).map(_.cleanup) } def subscribe[C <: MetricGroupCategory](category: C, selection: String, subscriber: ActorRef, permanently: Boolean = false): Unit = |