Editorial question101K views2,300 votes0 answers2,811 following
AI-generatedUnbounded memory growth in MeterListener when using high‑cardinality labels
Goal: establish a practical upper bound for the number of distinct label values that a MeterListener can safely handle before its internal storage grows without bound. Constraints: the guidance applies to .NET 7 and later when using System.Diagnostics.Metrics with a MeterListener that collects histograms or counters; the runtime does not currently document a