diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2015-02-15 10:46:36 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2015-02-15 10:46:36 +0100 |
commit | 8cd862debfbfa6d92473d601880cbd7c088601a1 (patch) | |
tree | dad23f5813d8e48b0b798def732b11a2eadc451a /kamon-core/src/main/scala/kamon/metric/SimpleMetrics.scala | |
parent | 1c176f002cc26061b1ccb04ec9f13ab4fb39eacd (diff) | |
download | Kamon-8cd862debfbfa6d92473d601880cbd7c088601a1.tar.gz Kamon-8cd862debfbfa6d92473d601880cbd7c088601a1.tar.bz2 Kamon-8cd862debfbfa6d92473d601880cbd7c088601a1.zip |
! core: drop the Extension postfix on all core components.
Diffstat (limited to 'kamon-core/src/main/scala/kamon/metric/SimpleMetrics.scala')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metric/SimpleMetrics.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/SimpleMetrics.scala b/kamon-core/src/main/scala/kamon/metric/SimpleMetrics.scala index b8dc54df..6324c320 100644 --- a/kamon-core/src/main/scala/kamon/metric/SimpleMetrics.scala +++ b/kamon-core/src/main/scala/kamon/metric/SimpleMetrics.scala @@ -22,7 +22,7 @@ import kamon.metric.instrument._ import scala.concurrent.duration.FiniteDuration -trait SimpleMetricsExtension { +trait SimpleMetrics { def histogram(name: String): Histogram def histogram(name: String, dynamicRange: DynamicRange): Histogram def histogram(name: String, unitOfMeasurement: UnitOfMeasurement): Histogram @@ -69,7 +69,7 @@ trait SimpleMetricsExtension { } -private[kamon] class SimpleMetricsExtensionImpl(instrumentFactory: InstrumentFactory) extends GenericEntityRecorder(instrumentFactory) with SimpleMetricsExtension { +private[kamon] class SimpleMetricsImpl(instrumentFactory: InstrumentFactory) extends GenericEntityRecorder(instrumentFactory) with SimpleMetrics { override def histogram(name: String): Histogram = super.histogram(name) @@ -191,12 +191,12 @@ private[kamon] class SimpleMetricsExtensionImpl(instrumentFactory: InstrumentFac super.removeCounter(key) } -private[kamon] object SimpleMetricsExtensionImpl { +private[kamon] object SimpleMetricsImpl { val SimpleMetricsEntity = Entity("simple-metric", "simple-metric") - def apply(metricsExtension: MetricsExtension): SimpleMetricsExtensionImpl = { + def apply(metricsExtension: Metrics): SimpleMetricsImpl = { val instrumentFactory = metricsExtension.instrumentFactory(SimpleMetricsEntity.category) - val simpleMetricsExtension = new SimpleMetricsExtensionImpl(instrumentFactory) + val simpleMetricsExtension = new SimpleMetricsImpl(instrumentFactory) metricsExtension.register(SimpleMetricsEntity, simpleMetricsExtension).recorder } |