You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request]: Allow disable user metrics in Python SDK #38746
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)
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.
Activity
Anuragp22 commentedon May 30, 2026
.take-issue
[Python] Note disable*Metrics support in CHANGES.md
[Python] Use public class attrs on MetricsFlag for hot-path reads
[Python] Honor disableCounterMetrics, disableStringSetMetrics, and di…
[Python] Honor disableCounterMetrics, disableStringSetMetrics, and di…
Abacn commentedon Aug 27, 2026
Reopen since last attempt get reverted
anishmehta24 commentedon Sep 17, 2026
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.addasMetricUpdaterattributes (soinc(value=...)and pickling behave exactly as before) and gates the update insideMetricUpdater.__call__instead, mirroring how the Java SDK checksMetricsFlagon every call. @Anuragp22 happy to hand it back if you're still on this — otherwise PR incoming.[Python] Honor disableCounterMetrics, disableStringSetMetrics and dis…
anishmehta24 commentedon Sep 24, 2026
.take-issue
[Python] Honor disableCounterMetrics, disableStringSetMetrics and dis…