blob: acec5915a949a7a5a1733174703abb57d6bd092c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package kamon.testkit
import com.typesafe.config.ConfigFactory
import kamon.metric.Entity
import kamon.metric.instrument.InstrumentFactory
trait DefaultInstrumentFactory {
val defaultEntity = Entity("default-entity", "default-category", Map.empty)
val instrumentFactory = InstrumentFactory(ConfigFactory.load().getConfig("kamon.metric.instrument-factory"))
def buildCounter(name: String) = instrumentFactory.buildCounter(defaultEntity, name)
}
|