MCPcopy
hub / github.com/grafana/tempo / NewHistogram

Method NewHistogram

modules/generator/registry/test.go:56–65  ·  view source on GitHub ↗
(name string, buckets []float64, histogramOverrides HistogramMode)

Source from the content-addressed store, hash-verified

54}
55
56func (t *TestRegistry) NewHistogram(name string, buckets []float64, histogramOverrides HistogramMode) Histogram {
57 return &testHistogram{
58 nameSum: name + "_sum",
59 nameCount: name + "_count",
60 nameBucket: name + "_bucket",
61 buckets: buckets,
62 registry: t,
63 histogramOverrides: histogramOverrides,
64 }
65}
66
67func (t *TestRegistry) addToMetric(name string, lbls labels.Labels, value float64) {
68 if t == nil || t.metrics == nil {

Callers 1

Calls

no outgoing calls

Tested by 1