SetEPS records a measurement for the EPS metric.
(val float64)
| 279 | |
| 280 | // SetEPS records a measurement for the EPS metric. |
| 281 | func (s *serverMetricsRecorder) SetEPS(val float64) { |
| 282 | if val < 0 { |
| 283 | if logger.V(2) { |
| 284 | logger.Infof("Ignoring EPS value out of range: %v", val) |
| 285 | } |
| 286 | return |
| 287 | } |
| 288 | smCopy := copyServerMetrics(s.state.Load()) |
| 289 | smCopy.EPS = val |
| 290 | s.state.Store(smCopy) |
| 291 | } |
| 292 | |
| 293 | // DeleteEPS deletes the relevant server metric to prevent it from being sent. |
| 294 | func (s *serverMetricsRecorder) DeleteEPS() { |
nothing calls this directly
no test coverage detected