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
commit183d7ddf4eac93572e388036b3c699d95710f72c (patch)
treea8ee2c3fe285a3147d68ac21f02e263bedad5170 /kamon-core/src/main/scala/kamon/metric/instrument/Instrument.scala
parentc5fcfc995dcb04f5e21e499129eab48dbdda03f9 (diff)
downloadKamon-183d7ddf4eac93572e388036b3c699d95710f72c.tar.gz
Kamon-183d7ddf4eac93572e388036b3c699d95710f72c.tar.bz2
Kamon-183d7ddf4eac93572e388036b3c699d95710f72c.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
+}