Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-6826

All Python counters should use the same code path

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: sdk-py-harness
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ajamato@google.com Alex Amato
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: