diff options
Diffstat (limited to 'kamon-core/src/test/scala/kamon/testkit')
-rw-r--r-- | kamon-core/src/test/scala/kamon/testkit/DefaultInstrumentFactory.scala | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kamon-core/src/test/scala/kamon/testkit/DefaultInstrumentFactory.scala b/kamon-core/src/test/scala/kamon/testkit/DefaultInstrumentFactory.scala index 77710376..0778a3bc 100644 --- a/kamon-core/src/test/scala/kamon/testkit/DefaultInstrumentFactory.scala +++ b/kamon-core/src/test/scala/kamon/testkit/DefaultInstrumentFactory.scala @@ -17,11 +17,12 @@ package kamon.testkit import com.typesafe.config.ConfigFactory import kamon.metric.InstrumentFactory +import kamon.util.MeasurementUnit +import scala.concurrent.duration._ trait DefaultInstrumentFactory { - val defaultEntity = Entity("default-entity", "default-category", Map.empty) - val instrumentFactory = InstrumentFactory.fromConfig(ConfigFactory.load()) - - def buildCounter(name: String) = ???//instrumentFactory.buildCounter(defaultEntity, name) + val instrumentFactory: InstrumentFactory = InstrumentFactory.fromConfig(ConfigFactory.load()) + def buildCounter(name: String) = instrumentFactory.buildCounter(name, Map.empty, MeasurementUnit.none) + def buildMinMaxCounter(name: String) = instrumentFactory.buildMinMaxCounter(None, Some(1 hour))(name, Map.empty, MeasurementUnit.none) } |