Fix metric # TYPE for histograms

This commit is contained in:
Christopher Baines 2020-12-05 17:49:46 +00:00
parent fba2005362
commit 6d9f8c57eb

View file

@ -388,7 +388,10 @@ so that it can receive and store the metric values."
docstring))) docstring)))
(simple-format port "# TYPE ~A ~A\n" (simple-format port "# TYPE ~A ~A\n"
full-name (metric-type metric)) full-name
(match (metric-type metric)
((? histogram-metric-type? type) 'histogram)
(type type)))
(hash-for-each (hash-for-each
(lambda (label-values value) (lambda (label-values value)