All Python counters should use the same code path
Open
harness
new feature
P3
python
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 4.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 196
Description
Right now we have Metrics.counter, Metrics.distribution counters which use MetricContainers to store and accumulate metrics.
CounterSet counters which use accumulators to store and accumulate metrics. This code path is optimized using cython.
See cy_combiners.py
Ideally we can keep the user interface (this should not change) for creating metrics with Metrics.counter(), .etc. But use the underlying optimized CounterSets.
Imported from Jira [BEAM-6826](https://issues.apache.org/jira/browse/BEAM-6826). Original Jira may contain additional context.
Reported by: ajamato@google.com.
Contributor guide
Assessment
This issue has not been assessed yet.