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
getMetricsAsJSON() omits labels on a label-less summary's sum and count #838
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.
Activity