shunping commented on PR #41072:
URL: https://github.com/apache/beam/pull/41072#issuecomment-7151606953

   Looks like the following code in your example is not getting the correct 
counter
   ```python
       counters = res.metrics().query()["counters"]
       committed = counters[0].committed
   ```
   
   You probably need this:
   ```python
     counters = res.metrics().query(
         MetricsFilter().with_namespace("ns").with_name("bundles"))["counters"]
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to