MCPcopy
hub / github.com/cortexlabs/cortex / recordFailure

Method recordFailure

pkg/dequeuer/batch_handler.go:98–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98func (h *BatchMessageHandler) recordFailure() error {
99 err := h.metrics.Incr("cortex_batch_failed", h.tags, 1.0)
100 if err != nil {
101 return errors.WithStack(err)
102 }
103 return nil
104}
105
106func (h *BatchMessageHandler) recordTimePerBatch(elapsedTime time.Duration) error {
107 err := h.metrics.Histogram("cortex_time_per_batch", elapsedTime.Seconds(), h.tags, 1.0)

Callers 1

handleBatchMethod · 0.95

Calls 1

WithStackFunction · 0.92

Tested by

no test coverage detected