Skip to content

Commit

Permalink
add observations
Browse files Browse the repository at this point in the history
  • Loading branch information
Vamsi-Mundra committed May 7, 2024
1 parent 9354dec commit a7a760f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-kit/metrics/testmetrics/provider.go
Expand Up @@ -94,7 +94,7 @@ func (p *Provider) newHistogram(name string, labelValues ...string) metrics.Hist

k := p.keyFor(name, labelValues...)
if _, ok := p.histograms[k]; !ok {
p.histograms[k] = &Histogram{name: name, p: p, labelValues: labelValues}
p.histograms[k] = &Histogram{name: name, p: p, labelValues: labelValues, observations: []float64{}}
}
return p.histograms[k]
}
Expand Down

0 comments on commit a7a760f

Please sign in to comment.