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

Method ObserveWithExemplar

modules/generator/registry/test.go:192–202  ·  view source on GitHub ↗
(lbls labels.Labels, value float64, _ string, multiplier float64)

Source from the content-addressed store, hash-verified

190)
191
192func (t *testHistogram) ObserveWithExemplar(lbls labels.Labels, value float64, _ string, multiplier float64) {
193 t.registry.addToMetric(t.nameCount, lbls, 1*multiplier)
194 t.registry.addToMetric(t.nameSum, lbls, value*multiplier)
195
196 for _, bucket := range t.buckets {
197 if value <= bucket {
198 t.registry.addToMetric(t.nameBucket, withLe(lbls, bucket), 1*multiplier)
199 }
200 }
201 t.registry.addToMetric(t.nameBucket, withLe(lbls, math.Inf(1)), 1*multiplier)
202}
203
204func (t *testHistogram) name() string {
205 panic("implement me")

Callers

nothing calls this directly

Calls 2

addToMetricMethod · 0.80
withLeFunction · 0.70

Tested by

no test coverage detected