jonathansudhakar1 commented on issue #21362:
URL: https://github.com/apache/beam/issues/21362#issuecomment-6710427317

   This looks done. #32464 (merged 2024-09-16) added Python examples to the 
Metrics section of the programming guide, and #36334 (2025-10-03) updated them. 
On master, every Metrics subsection with Java and Go examples now has a Python 
one too:
   - [§10.2 Types of 
metrics](https://beam.apache.org/documentation/programming-guide/#types-of-metrics):
 counter, distribution and gauge.
   - [§10.3 Querying 
metrics](https://beam.apache.org/documentation/programming-guide/#querying-metrics):
 `PipelineResult.metrics()`, `MetricResults.query`, `MetricResult.result`.
   - [§10.4 Using metrics in 
pipeline](https://beam.apache.org/documentation/programming-guide/#using-metrics):
 a full example.
   
   I ran the §10.4 example as written, plus the §10.2 distribution and gauge 
DoFns, on the DirectRunner at 431b7c7ef0a (Python 3.13). They report `counter1` 
committed=3, `distribution1` sum=6, count=3, min=1, max=3, and `gauge1` 
value=3. So this issue can probably be closed.
   


-- 
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