You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/09/13 12:08:40 UTC

[GitHub] [pulsar] flowchartsman commented on a change in pull request #12013: [Issue 9772][Go Functions]Allow User Metrics

flowchartsman commented on a change in pull request #12013:
URL: https://github.com/apache/pulsar/pull/12013#discussion_r707271695



##########
File path: site2/docs/functions-develop.md
##########
@@ -1006,7 +1006,22 @@ class MetricRecorderFunction(Function):
             context.record_metric('elevens-count', 1)
 ```
 <!--Go-->
-Currently, the feature is not available in Go.
+The Go SDK [`Context`](#context) object enables you to record metrics on a per-key basis. For example, you can set a metric for the `process-count` key and a different metric for the `elevens-count` key every time the function processes a message:

Review comment:
       Worth noting that I more or less copied this from the Java one, since the method signature is the same and they use the same technique of overloading a single metric with labels.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org