You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/09/17 12:37:25 UTC
[GitHub] chetanmeh commented on a change in pull request #4023: Emit
CosmosDB request usage metric
chetanmeh commented on a change in pull request #4023: Emit CosmosDB request usage metric
URL: https://github.com/apache/incubator-openwhisk/pull/4023#discussion_r218051075
##########
File path: common/scala/src/main/scala/whisk/common/Logging.scala
##########
@@ -212,14 +212,16 @@ object MetricEmitter {
val metrics = Kamon.metrics
- def emitCounterMetric(token: LogMarkerToken): Unit = {
+ def emitCounterMetric(token: LogMarkerToken): Unit = emitCounterMetric(token, 1)
+
+ def emitCounterMetric(token: LogMarkerToken, times: Long): Unit = {
Review comment:
Makes sense. Was doing it the traditional java way here!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services