()
| 88 | } |
| 89 | |
| 90 | func (h *BatchMessageHandler) recordSuccess() error { |
| 91 | err := h.metrics.Incr("cortex_batch_succeeded", h.tags, 1.0) |
| 92 | if err != nil { |
| 93 | return errors.WithStack(err) |
| 94 | } |
| 95 | return nil |
| 96 | } |
| 97 | |
| 98 | func (h *BatchMessageHandler) recordFailure() error { |
| 99 | err := h.metrics.Incr("cortex_batch_failed", h.tags, 1.0) |
no test coverage detected