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

Method NewGauge

modules/generator/registry/registry.go:216–220  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

214}
215
216func (r *ManagedRegistry) NewGauge(name string) Gauge {
217 g := newGauge(name, r, r.externalLabels, r.cfg.StaleDuration)
218 r.registerMetric(g)
219 return g
220}
221
222func (r *ManagedRegistry) registerMetric(m metric) {
223 r.metricsMtx.Lock()

Callers

nothing calls this directly

Calls 2

registerMetricMethod · 0.95
newGaugeFunction · 0.85

Tested by

no test coverage detected