A summary declared with no labelNames leaves the labels property off its _sum and _count entries. A counter declared the same way gives you labels: {}. Both come from getMetricsAsJSON() on main today.
{"metricName":"s_none_sum","value":0}
{"value":0,"labels":{}}
The Summary constructor stores that entry with store.set({}, { td, count, sum }), and no labels key ever lands on it afterwards. So summaries are the odd one out if you read values[].labels.
#798 lines them up as a byproduct, since the entry now takes its labels from the store. Filing it for posterity.
A summary declared with no labelNames leaves the labels property off its _sum and _count entries. A counter declared the same way gives you labels: {}. Both come from getMetricsAsJSON() on main today.
The Summary constructor stores that entry with store.set({}, { td, count, sum }), and no labels key ever lands on it afterwards. So summaries are the odd one out if you read values[].labels.
#798 lines them up as a byproduct, since the entry now takes its labels from the store. Filing it for posterity.