mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
metrics/histogram: Fixing incorrect label_name (#29492)
We were incorrectly overwriting the same key - label_name. ```release-note NONE ```
This commit is contained in:
@@ -66,9 +66,7 @@ func (o *WrappedObserver) Observe(v float64) {
|
||||
mlog.Float("highest_bucket_value", o.buckets[len(o.buckets)-1]),
|
||||
}
|
||||
for k, v := range o.labels {
|
||||
fields = append(fields,
|
||||
mlog.String("label_name", k),
|
||||
mlog.String("label_value", v))
|
||||
fields = append(fields, mlog.String(k, v))
|
||||
}
|
||||
o.logger.Warn("Metric observation exceeded.", fields...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user