aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2015-04-05 17:02:18 +0200
committerIvan Topolnjak <ivantopo@gmail.com>2015-04-05 19:59:04 +0200
commit0746f0002b2e1d563d837f954b367ae063546ca1 (patch)
treeed7f0a74ed89dae008f79e479c2d788c92f942f9 /kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala
parent5456e7ca8f215b2a3a5bdbd3177a6ae61f268eef (diff)
downloadKamon-0746f0002b2e1d563d837f954b367ae063546ca1.tar.gz
Kamon-0746f0002b2e1d563d837f954b367ae063546ca1.tar.bz2
Kamon-0746f0002b2e1d563d837f954b367ae063546ca1.zip
= core: minor cleanup of metric keys and units of measurements.
Diffstat (limited to 'kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala')
-rw-r--r--kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala16
1 files changed, 8 insertions, 8 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala b/kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala
index 59b4b443..089dbeec 100644
--- a/kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala
+++ b/kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala
@@ -33,14 +33,6 @@ trait InstrumentSnapshot {
def merge(that: InstrumentSnapshot, context: CollectionContext): InstrumentSnapshot
}
-class InstrumentType private[kamon] (val id: Int) extends AnyVal
-object InstrumentTypes {
- val Histogram = new InstrumentType(1)
- val MinMaxCounter = new InstrumentType(2)
- val Gauge = new InstrumentType(3)
- val Counter = new InstrumentType(4)
-}
-
trait CollectionContext {
def buffer: LongBuffer
}
@@ -51,3 +43,11 @@ object CollectionContext {
}
}
+sealed trait InstrumentType
+
+object InstrumentTypes {
+ case object Histogram extends InstrumentType
+ case object MinMaxCounter extends InstrumentType
+ case object Gauge extends InstrumentType
+ case object Counter extends InstrumentType
+}