[Feature Request]: Allow disable user metrics in Python SDK
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
.take-issue
Reopen since last attempt get reverted
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.
.take-issue