diff options
author | Ivan Topolnak <itopolnak@despegar.com> | 2014-04-09 17:47:02 -0300 |
---|---|---|
committer | Ivan Topolnak <itopolnak@despegar.com> | 2014-04-09 17:47:02 -0300 |
commit | 516be79dc872fff9ea1e818f859a5989f58e3226 (patch) | |
tree | 228c68d64529a41e0d3a0fa26e95d3c5b6a29adc /kamon-core/src/main/scala/kamon/metrics | |
parent | 98bb6b81e8f0f79ea42157e6c146cd8f795b3a6d (diff) | |
download | Kamon-516be79dc872fff9ea1e818f859a5989f58e3226.tar.gz Kamon-516be79dc872fff9ea1e818f859a5989f58e3226.tar.bz2 Kamon-516be79dc872fff9ea1e818f859a5989f58e3226.zip |
! core: change metric identities to lower case, separated with dashes
Diffstat (limited to 'kamon-core/src/main/scala/kamon/metrics')
3 files changed, 5 insertions, 5 deletions
diff --git a/kamon-core/src/main/scala/kamon/metrics/ActorMetrics.scala b/kamon-core/src/main/scala/kamon/metrics/ActorMetrics.scala index 86558375..bd0d628b 100644 --- a/kamon-core/src/main/scala/kamon/metrics/ActorMetrics.scala +++ b/kamon-core/src/main/scala/kamon/metrics/ActorMetrics.scala @@ -27,9 +27,9 @@ case class ActorMetrics(name: String) extends MetricGroupIdentity { object ActorMetrics extends MetricGroupCategory { val name = "actor" - case object ProcessingTime extends MetricIdentity { val name, tag = "ProcessingTime" } - case object MailboxSize extends MetricIdentity { val name, tag = "MailboxSize" } - case object TimeInMailbox extends MetricIdentity { val name, tag = "TimeInMailbox" } + case object ProcessingTime extends MetricIdentity { val name, tag = "processing-time" } + case object MailboxSize extends MetricIdentity { val name, tag = "mailbox-size" } + case object TimeInMailbox extends MetricIdentity { val name, tag = "time-in-mailbox" } case class ActorMetricRecorder(processingTime: MetricRecorder, mailboxSize: MetricRecorder, timeInMailbox: MetricRecorder) extends MetricGroupRecorder { diff --git a/kamon-core/src/main/scala/kamon/metrics/CustomMetric.scala b/kamon-core/src/main/scala/kamon/metrics/CustomMetric.scala index 82affe47..cd0afac1 100644 --- a/kamon-core/src/main/scala/kamon/metrics/CustomMetric.scala +++ b/kamon-core/src/main/scala/kamon/metrics/CustomMetric.scala @@ -26,7 +26,7 @@ case class CustomMetric(name: String) extends MetricGroupIdentity { object CustomMetric extends MetricGroupCategory { val name = "custom-metric" - val RecordedValues = new MetricIdentity { val name, tag = "RecordedValues" } + val RecordedValues = new MetricIdentity { val name, tag = "recorded-values" } def histogram(highestTrackableValue: Long, significantValueDigits: Int, scale: Scale, continuous: Boolean = false) = new MetricGroupFactory { diff --git a/kamon-core/src/main/scala/kamon/metrics/TraceMetrics.scala b/kamon-core/src/main/scala/kamon/metrics/TraceMetrics.scala index 9d787428..7c197166 100644 --- a/kamon-core/src/main/scala/kamon/metrics/TraceMetrics.scala +++ b/kamon-core/src/main/scala/kamon/metrics/TraceMetrics.scala @@ -27,7 +27,7 @@ case class TraceMetrics(name: String) extends MetricGroupIdentity { object TraceMetrics extends MetricGroupCategory { val name = "trace" - case object ElapsedTime extends MetricIdentity { val name, tag = "ElapsedTime" } + case object ElapsedTime extends MetricIdentity { val name, tag = "elapsed-time" } case class HttpClientRequest(name: String, tag: String) extends MetricIdentity class TraceMetricRecorder(val elapsedTime: HdrRecorder, private val segmentRecorderFactory: () ⇒ HdrRecorder) |