MCPcopy Index your code
hub / github.com/keploy/keploy / SendError

Method SendError

pkg/agent/proxy/proxy.go:3036–3042  ·  view source on GitHub ↗

SendError sends an error to the error channel for external monitoring.

(err error)

Source from the content-addressed store, hash-verified

3034
3035// SendError sends an error to the error channel for external monitoring.
3036func (p *Proxy) SendError(err error) {
3037 select {
3038 case p.errChannel <- err:
3039 default:
3040 p.logger.Error("Error channel is full, dropping error", zap.Error(err))
3041 }
3042}
3043
3044// sendMockNotFoundError builds a ParserError from a mock-miss error,
3045// extracting the MismatchReport if the error carries one.

Callers 2

sendMockNotFoundErrorMethod · 0.95

Implementers 1

Proxypkg/agent/proxy/proxy.go

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected