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-unsubscr...@pulsar.apache.org

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


Reply via email to