SendError sends an error to the error channel for external monitoring.
(err error)
| 3034 | |
| 3035 | // SendError sends an error to the error channel for external monitoring. |
| 3036 | func (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. |