Open SimunKaracic opened 3 years ago
Hi,
in the meantime I thought I avoided the aforementioned problem by just initialising all metrics with each expected label combination. Unfortunately, this didn't hold quite true. When a counter is initialised with labels by calling Kamon.counter(name).withTags
an initial value of 0
is exported immediately, which is desired. However, if a histogram is initialised in a similar fashion, no metrics are exported which introduces the same issue and leads to potentially wrong metrics.
I could record a fake value to initialise a histogram, but this would mean that all my metrics would include this fake initial value. I think this is not a suitable approach since it messes with the resulting metrics.
Issue to track the following (raised on gitter by @imRentable):