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

Method watchOverrides

modules/generator/instance.go:133–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133func (i *instance) watchOverrides() {
134 reloadPeriod := 10 * time.Second
135
136 ticker := time.NewTicker(reloadPeriod)
137 defer ticker.Stop()
138
139 for {
140 select {
141 case <-ticker.C:
142 err := i.updateProcessors()
143 if err != nil {
144 metricActiveProcessorsUpdateFailed.WithLabelValues(i.instanceID).Inc()
145 level.Error(i.logger).Log("msg", "updating the processors failed", "err", err)
146 }
147
148 case <-i.shutdownCh:
149 return
150 }
151 }
152}
153
154// Look at the processors defined and see if any are actually span-metrics subprocessors
155// If they are, set the appropriate flags in the spanmetrics struct

Callers 1

newInstanceFunction · 0.95

Calls 5

updateProcessorsMethod · 0.95
StopMethod · 0.65
IncMethod · 0.65
LogMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected