diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-10-31 03:14:32 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-10-31 03:14:32 +0100 |
commit | 992dd3007a6ddd24bf2aaf952aeacab7d8d9fb1a (patch) | |
tree | 87d874030e28a19638b9b4e4a80a658976f4043d /kamon-core/src/main/scala/kamon/metric/TraceMetrics.scala | |
parent | 7b3928c881c85152bee88019da9d76a0cfa5359f (diff) | |
parent | 508336438227fc89eb732565bd19cb254572e533 (diff) | |
download | Kamon-992dd3007a6ddd24bf2aaf952aeacab7d8d9fb1a.tar.gz Kamon-992dd3007a6ddd24bf2aaf952aeacab7d8d9fb1a.tar.bz2 Kamon-992dd3007a6ddd24bf2aaf952aeacab7d8d9fb1a.zip |
Merge branch 'wip/improve-trace-context-and-segments-api', closes #65
Diffstat (limited to 'kamon-core/src/main/scala/kamon/metric/TraceMetrics.scala')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metric/TraceMetrics.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/TraceMetrics.scala b/kamon-core/src/main/scala/kamon/metric/TraceMetrics.scala index 10dbcc01..7246ccb5 100644 --- a/kamon-core/src/main/scala/kamon/metric/TraceMetrics.scala +++ b/kamon-core/src/main/scala/kamon/metric/TraceMetrics.scala @@ -30,12 +30,11 @@ object TraceMetrics extends MetricGroupCategory { val name = "trace" case object ElapsedTime extends MetricIdentity { val name = "elapsed-time" } - case class HttpClientRequest(name: String) extends MetricIdentity case class TraceMetricRecorder(elapsedTime: Histogram, private val segmentRecorderFactory: () ⇒ Histogram) extends MetricGroupRecorder { - private val segments = TrieMap[MetricIdentity, Histogram]() + val segments = TrieMap[MetricIdentity, Histogram]() def segmentRecorder(segmentIdentity: MetricIdentity): Histogram = segments.getOrElseUpdate(segmentIdentity, segmentRecorderFactory.apply()) |