prometheus fixup panics and interface conversations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
0975e8fb4d
commit
21494e0e7a
@ -359,7 +359,7 @@ func (m *prometheusMeter) Write(w io.Writer, opts ...meter.Option) error {
|
|||||||
Type: dto.MetricType_GAUGE.Enum(),
|
Type: dto.MetricType_GAUGE.Enum(),
|
||||||
}
|
}
|
||||||
v.(*floatCounters).cs.Range(func(_, nv any) bool {
|
v.(*floatCounters).cs.Range(func(_, nv any) bool {
|
||||||
c := nv.(*prometheusGauge)
|
c := nv.(*prometheusFloatCounter)
|
||||||
m := &dto.Metric{}
|
m := &dto.Metric{}
|
||||||
_ = c.c.Write(m)
|
_ = c.c.Write(m)
|
||||||
fillMetric(m, c.labels)
|
fillMetric(m, c.labels)
|
||||||
|
Loading…
Reference in New Issue
Block a user