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 09:14:00 UTC
[GitHub] [pulsar] Anonymitaet commented on a change in pull request #12013: [Issue 9772][Go Functions]Allow User Metrics
Anonymitaet commented on a change in pull request #12013:
URL: https://github.com/apache/pulsar/pull/12013#discussion_r707149794
##########
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:
@freeznet could you please help review this from the technical perspective? Thanks
--
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