diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2015-02-15 10:26:58 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2015-02-15 10:26:58 +0100 |
commit | 0688c1a84caba17a600c498b158013f9867e4093 (patch) | |
tree | ad27f9490fb9f633083f99ddd0c02f6e297b4f32 /kamon-newrelic/src/main/scala/kamon/newrelic | |
parent | eee33621d5ba27229d3039f3054c306d7e569985 (diff) | |
download | Kamon-0688c1a84caba17a600c498b158013f9867e4093.tar.gz Kamon-0688c1a84caba17a600c498b158013f9867e4093.tar.bz2 Kamon-0688c1a84caba17a600c498b158013f9867e4093.zip |
= core: rename UserMetrics to SimpleMetrics.
Diffstat (limited to 'kamon-newrelic/src/main/scala/kamon/newrelic')
-rw-r--r-- | kamon-newrelic/src/main/scala/kamon/newrelic/CustomMetricExtractor.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kamon-newrelic/src/main/scala/kamon/newrelic/CustomMetricExtractor.scala b/kamon-newrelic/src/main/scala/kamon/newrelic/CustomMetricExtractor.scala index 3b1b8cb3..26afc9e2 100644 --- a/kamon-newrelic/src/main/scala/kamon/newrelic/CustomMetricExtractor.scala +++ b/kamon-newrelic/src/main/scala/kamon/newrelic/CustomMetricExtractor.scala @@ -16,14 +16,14 @@ package kamon.newrelic -import kamon.metric.{ UserMetricsExtensionImpl, EntitySnapshot, Entity } +import kamon.metric.{ SimpleMetricsExtensionImpl, EntitySnapshot, Entity } import kamon.metric.instrument.CollectionContext object CustomMetricExtractor extends MetricExtractor { def extract(settings: AgentSettings, collectionContext: CollectionContext, metrics: Map[Entity, EntitySnapshot]): Map[MetricID, MetricData] = { - metrics.get(UserMetricsExtensionImpl.UserMetricEntity).map { allUserMetrics ⇒ - allUserMetrics.metrics.map { + metrics.get(SimpleMetricsExtensionImpl.SimpleMetricsEntity).map { allSimpleMetrics ⇒ + allSimpleMetrics.metrics.map { case (key, snapshot) ⇒ Metric(snapshot, key.unitOfMeasurement, s"Custom/${key.name}", None) } |