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

Method newSeries

modules/generator/registry/gauge.go:102–108  ·  view source on GitHub ↗
(lbls labels.Labels, value float64)

Source from the content-addressed store, hash-verified

100}
101
102func (g *gauge) newSeries(lbls labels.Labels, value float64) *gaugeSeries {
103 return &gaugeSeries{
104 labels: getSeriesLabels(g.metricName, lbls, g.externalLabels),
105 value: atomic.NewFloat64(value),
106 lastUpdated: atomic.NewInt64(time.Now().UnixMilli()),
107 }
108}
109
110func (g *gauge) updateSeriesValue(hash uint64, s *gaugeSeries, value float64, operation string) {
111 if operation == add {

Callers 1

updateSeriesMethod · 0.95

Calls 2

getSeriesLabelsFunction · 0.85
NowMethod · 0.65

Tested by

no test coverage detected