aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/scala/kamon/http
diff options
context:
space:
mode:
authorBoris Giftge <bgiftge@kixeye.com>2014-10-22 18:19:15 -0700
committerIvan Topolnjak <ivantopo@gmail.com>2014-10-23 18:53:21 +0200
commit2bc964779fd260af550e7b40fbb2991d997ed000 (patch)
tree8c1b529c130f6f4cfeb0c490e41baffa1ba1c117 /kamon-core/src/main/scala/kamon/http
parent52233d1ddef10b3c40df134b33f0d255dce85ae5 (diff)
downloadKamon-2bc964779fd260af550e7b40fbb2991d997ed000.tar.gz
Kamon-2bc964779fd260af550e7b40fbb2991d997ed000.tar.bz2
Kamon-2bc964779fd260af550e7b40fbb2991d997ed000.zip
= core,system.metrics: fixed serialization errors when using akka.actor.serialize-messages = on
Diffstat (limited to 'kamon-core/src/main/scala/kamon/http')
-rw-r--r--kamon-core/src/main/scala/kamon/http/HttpServerMetrics.scala15
1 files changed, 10 insertions, 5 deletions
diff --git a/kamon-core/src/main/scala/kamon/http/HttpServerMetrics.scala b/kamon-core/src/main/scala/kamon/http/HttpServerMetrics.scala
index 3773e7d8..dfa4bcb8 100644
--- a/kamon-core/src/main/scala/kamon/http/HttpServerMetrics.scala
+++ b/kamon-core/src/main/scala/kamon/http/HttpServerMetrics.scala
@@ -82,11 +82,16 @@ object HttpServerMetrics extends MetricGroupIdentity {
}
}
- val Factory = new MetricGroupFactory {
- type GroupRecorder = HttpServerMetricsRecorder
+ val Factory = HttpServerMetricGroupFactory
+}
- def create(config: Config, system: ActorSystem): HttpServerMetricsRecorder =
- new HttpServerMetricsRecorder()
- }
+case object HttpServerMetricGroupFactory extends MetricGroupFactory {
+
+ import HttpServerMetrics._
+
+ type GroupRecorder = HttpServerMetricsRecorder
+
+ def create(config: Config, system: ActorSystem): HttpServerMetricsRecorder =
+ new HttpServerMetricsRecorder()
} \ No newline at end of file