diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-11-09 22:55:43 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-11-09 22:56:03 +0100 |
commit | 447605e612d5bbea9765ede288ba19b1a69af48c (patch) | |
tree | 9777130efb47e31bbf262c047cb875d1cdc4724c /kamon-newrelic/src/main/scala/kamon | |
parent | 0bb57412690b8694f742d479213bda6f7f090630 (diff) | |
download | Kamon-447605e612d5bbea9765ede288ba19b1a69af48c.tar.gz Kamon-447605e612d5bbea9765ede288ba19b1a69af48c.tar.bz2 Kamon-447605e612d5bbea9765ede288ba19b1a69af48c.zip |
+ core,play,spray: allow segments to identify the library they belong to.
Diffstat (limited to 'kamon-newrelic/src/main/scala/kamon')
-rw-r--r-- | kamon-newrelic/src/main/scala/kamon/newrelic/WebTransactionMetricExtractor.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kamon-newrelic/src/main/scala/kamon/newrelic/WebTransactionMetricExtractor.scala b/kamon-newrelic/src/main/scala/kamon/newrelic/WebTransactionMetricExtractor.scala index 3710595c..15eba982 100644 --- a/kamon-newrelic/src/main/scala/kamon/newrelic/WebTransactionMetricExtractor.scala +++ b/kamon-newrelic/src/main/scala/kamon/newrelic/WebTransactionMetricExtractor.scala @@ -19,7 +19,7 @@ package kamon.newrelic import kamon.metric._ import kamon.metric.TraceMetrics.ElapsedTime import kamon.metric.instrument.Histogram -import kamon.trace.SegmentMetricIdentityLabel.HttpClient +import kamon.trace.SegmentCategory.HttpClient import kamon.trace.SegmentMetricIdentity object WebTransactionMetricExtractor extends MetricExtractor { @@ -45,7 +45,7 @@ object WebTransactionMetricExtractor extends MetricExtractor { Metric.fromKamonMetricSnapshot(snapshot, s"WebTransaction/Custom/$name", None, Scale.Unit) // Extract all external services. - case (SegmentMetricIdentity(segmentName, label), snapshot: Histogram.Snapshot) if label.equals(HttpClient) ⇒ + case (SegmentMetricIdentity(segmentName, category, library), snapshot: Histogram.Snapshot) if category.equals(HttpClient) ⇒ accumulatedExternalServices = accumulatedExternalServices.merge(snapshot, collectionContext) Metric.fromKamonMetricSnapshot(snapshot, s"External/$segmentName/all", None, Scale.Unit) |