You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/01/31 23:58:51 UTC
[GitHub] [beam] robertwb commented on a change in pull request #16638: Make num-stages counter into an internal counter.
robertwb commented on a change in pull request #16638:
URL: https://github.com/apache/beam/pull/16638#discussion_r796165813
##########
File path: sdks/python/apache_beam/runners/portability/fn_api_runner/fn_runner.py
##########
@@ -358,8 +358,11 @@ def run_stages(self,
stage_context.components.environments, self._provision_info)
pipeline_metrics = MetricsContainer('')
pipeline_metrics.get_counter(
- MetricName(str(type(self)),
- self.NUM_FUSED_STAGES_COUNTER)).update(len(stages))
+ MetricName(
+ str(type(self)),
+ self.NUM_FUSED_STAGES_COUNTER,
+ urn='internal:' + self.NUM_FUSED_STAGES_COUNTER)).update(
+ len(stages))
Review comment:
Yeah, there's some inconsistencies here with "user" counters requiring a name and namespace and "non-user" counters using the first component of the urn as a namespace and the rest as the name.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org