aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/scala/kamon/metric/RecorderRegistry.scala
diff options
context:
space:
mode:
Diffstat (limited to 'kamon-core/src/main/scala/kamon/metric/RecorderRegistry.scala')
-rw-r--r--kamon-core/src/main/scala/kamon/metric/RecorderRegistry.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/RecorderRegistry.scala b/kamon-core/src/main/scala/kamon/metric/RecorderRegistry.scala
index 8b84ab6a..a4d2f4cd 100644
--- a/kamon-core/src/main/scala/kamon/metric/RecorderRegistry.scala
+++ b/kamon-core/src/main/scala/kamon/metric/RecorderRegistry.scala
@@ -23,11 +23,11 @@ class RecorderRegistryImpl(initialConfig: Config) extends RecorderRegistry {
reconfigure(initialConfig)
- override def getRecorder(entity: Entity): EntityRecorder = {
+ override def getRecorder(entity: Entity): EntityRecorder =
entities.atomicGetOrElseUpdate(entity, new DefaultEntityRecorder(entity, instrumentFactory.get()))
- }
- override def getRecorder(name: String, category: String, tags: Map[String, String]): EntityRecorder = ???
+ override def getRecorder(name: String, category: String, tags: Map[String, String]): EntityRecorder =
+ getRecorder(Entity(name, category, tags))
override def removeRecorder(entity: Entity): Boolean = ???