aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/test/scala/kamon/testkit/DefaultInstrumentFactory.scala
blob: 6fd193d6ec47354752f02b388bc93c3984461f0d (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.fromConfig(ConfigFactory.load())

  def buildCounter(name: String) = instrumentFactory.buildCounter(defaultEntity, name)

}