openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markusthoem...@apache.org
Subject [incubator-openwhisk] branch master updated: Emit counter metrics for start and error cases. (#2930)
Date Tue, 07 Nov 2017 09:28:45 GMT
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 <raskinvadim@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" <commits@openwhisk.apache.org>'].

Mime
View raw message