diff options
Diffstat (limited to 'kamon-core/src/test/scala/kamon/testkit')
-rw-r--r-- | kamon-core/src/test/scala/kamon/testkit/DefaultInstrumentFactory.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/kamon-core/src/test/scala/kamon/testkit/DefaultInstrumentFactory.scala b/kamon-core/src/test/scala/kamon/testkit/DefaultInstrumentFactory.scala new file mode 100644 index 00000000..acec5915 --- /dev/null +++ b/kamon-core/src/test/scala/kamon/testkit/DefaultInstrumentFactory.scala @@ -0,0 +1,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) + +} |