You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ma...@apache.org on 2017/11/07 09:28:45 UTC

[incubator-openwhisk] branch master updated: Emit counter metrics for start and error cases. (#2930)

This is an automated email from the ASF dual-hosted git repository.

markusthoemmes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new 3671ea9  Emit counter metrics for start and error cases. (#2930)
3671ea9 is described below

commit 3671ea9c0d4d394cc7e033dbbd5a6bae93dfbe55
Author: Vadim Raskin <ra...@gmail.com>
AuthorDate: Tue Nov 7 10:28:42 2017 +0100

    Emit counter metrics for start and error cases. (#2930)
---
 common/scala/src/main/scala/whisk/common/TransactionId.scala | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/common/scala/src/main/scala/whisk/common/TransactionId.scala b/common/scala/src/main/scala/whisk/common/TransactionId.scala
index 2cb99a7..0a43b79 100644
--- a/common/scala/src/main/scala/whisk/common/TransactionId.scala
+++ b/common/scala/src/main/scala/whisk/common/TransactionId.scala
@@ -88,6 +88,10 @@ case class TransactionId private (meta: TransactionMetadata) extends AnyVal {
       logging.emit(logLevel, this, from, message)
     }
 
+    if (TransactionId.metricsKamon) {
+      MetricEmitter.emitCounterMetric(marker)
+    }
+
     StartMarker(Instant.now, marker)
   }
 
@@ -152,6 +156,7 @@ case class TransactionId private (meta: TransactionMetadata) extends AnyVal {
 
     if (TransactionId.metricsKamon) {
       MetricEmitter.emitHistogramMetric(endMarker, deltaToEnd)
+      MetricEmitter.emitCounterMetric(endMarker)
     }
   }
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].