SendError sends an error to all monitoring services
(ctx context.Context, errType string, err errctx.Error)
| 174 | |
| 175 | // SendError sends an error to all monitoring services |
| 176 | func (m *Monitoring) SendError(ctx context.Context, errType string, err errctx.Error) { |
| 177 | for _, monitor := range m.monitors { |
| 178 | monitor.SendError(ctx, errType, err) |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | // InjectHeaders adds monitoring headers to the provided HTTP headers. |
| 183 | // These headers can be used to correlate requests across different services. |