aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/test/scala/kamon/testkit
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2017-04-27 23:48:39 +0200
committerIvan Topolnjak <ivantopo@gmail.com>2017-04-27 23:48:39 +0200
commitf5e70695ad0124cd5cd648d186d5174c7b121266 (patch)
tree0f0f86af677653ce45435c127c545656f45e81df /kamon-core/src/test/scala/kamon/testkit
parent0fe9e267c7cec7a176fc8b0a43e73e12b6606b9f (diff)
downloadKamon-f5e70695ad0124cd5cd648d186d5174c7b121266.tar.gz
Kamon-f5e70695ad0124cd5cd648d186d5174c7b121266.tar.bz2
Kamon-f5e70695ad0124cd5cd648d186d5174c7b121266.zip
implement HdrHistogram and Distribution snapshots
Diffstat (limited to 'kamon-core/src/test/scala/kamon/testkit')
-rw-r--r--kamon-core/src/test/scala/kamon/testkit/DefaultInstrumentFactory.scala13
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)
+
+}