nkurihar closed pull request #2270: Fix the sample code in Metrics for Pulsar
Functions document
URL: https://github.com/apache/incubator-pulsar/pull/2270
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/site/docs/latest/functions/metrics.md
b/site/docs/latest/functions/metrics.md
index faa8abc62f..2d0b0f25e4 100644
--- a/site/docs/latest/functions/metrics.md
+++ b/site/docs/latest/functions/metrics.md
@@ -27,7 +27,7 @@ import org.apache.pulsar.functions.api.Function;
public class MetricRecordingFunction implements Function<String, Void> {
@Override
- public void apply(String input, Context context) {
+ public Void process(String input, Context context) {
context.recordMetric("number-of-characters", input.length());
return null;
}
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services