beam icon indicating copy to clipboard operation
beam copied to clipboard

[Feature Request]: Allow disable user metrics in Python SDK

Open Abacn opened this issue 6 months ago • 4 comments

What would you like to happen?

In the case of high throughput jobs, we may want to disable metrics requests that adding pressures to backends. In Java SDK we honor pipeline option experiments "disableCounterMetrics", "disableStringSetMetrics", "disableBoundedTrieMetrics", but not yet in Python.

Issue Priority

Priority: 2 (default / most feature requests should be filed as P2)

Issue Components

  • [ ] Component: Python SDK
  • [ ] Component: Java SDK
  • [ ] Component: Go SDK
  • [ ] Component: Typescript SDK
  • [ ] Component: IO connector
  • [ ] Component: Beam YAML
  • [ ] Component: Beam examples
  • [ ] Component: Beam playground
  • [ ] Component: Beam katas
  • [ ] Component: Website
  • [ ] Component: Infrastructure
  • [ ] Component: Spark Runner
  • [ ] Component: Flink Runner
  • [ ] Component: Prism Runner
  • [ ] Component: Twister2 Runner
  • [ ] Component: Hazelcast Jet Runner
  • [ ] Component: Google Cloud Dataflow Runner

Abacn avatar May 29 '26 16:05 Abacn

.take-issue

Anuragp22 avatar May 30 '26 06:05 Anuragp22

Reopen since last attempt get reverted

Abacn avatar Aug 27 '26 18:08 Abacn

Since the first attempt (#38749) was reverted in #38901 and has been idle since June, I've prepared a re-land that keeps DelegatingCounter.inc / DelegatingStringSet.add / DelegatingBoundedTrie.add as MetricUpdater attributes (so inc(value=...) and pickling behave exactly as before) and gates the update inside MetricUpdater.__call__ instead, mirroring how the Java SDK checks MetricsFlag on every call. @Anuragp22 happy to hand it back if you're still on this — otherwise PR incoming.

anishmehta24 avatar Sep 17 '26 22:09 anishmehta24

.take-issue

anishmehta24 avatar Sep 24 '26 16:09 anishmehta24