blob: f312c5b7e520bbaa97e430dbea7826847100223d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package kamon
package metric
import scala.collection.concurrent.TrieMap
trait Metrics {
def getRecorder(entity: Entity): EntityRecorder
def getRecorder(name: String, category: String, tags: Map[String, String]): EntityRecorder
def removeRecorder(entity: Entity): Boolean
def removeRecorder(name: String, category: String, tags: Map[String, String]): Boolean
}
class MetricsImpl extends Metrics{
private val entities = TrieMap.empty[Entity, EntityRecorder]
override def getRecorder(entity: Entity): EntityRecorder = {
???
}
override def getRecorder(name: String, category: String, tags: Map[String, String]): EntityRecorder = ???
override def removeRecorder(entity: Entity): Boolean = ???
override def removeRecorder(name: String, category: String, tags: Map[String, String]): Boolean = ???
}
|