()
| 131 | } |
| 132 | |
| 133 | func (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 |
no test coverage detected