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

Method recordSuccess

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

Source from the content-addressed store, hash-verified

88}
89
90func (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
98func (h *BatchMessageHandler) recordFailure() error {
99 err := h.metrics.Incr("cortex_batch_failed", h.tags, 1.0)

Callers 1

handleBatchMethod · 0.95

Calls 1

WithStackFunction · 0.92

Tested by

no test coverage detected