aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/scala/kamon/http/HttpServerMetrics.scala
diff options
context:
space:
mode:
Diffstat (limited to 'kamon-core/src/main/scala/kamon/http/HttpServerMetrics.scala')
-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