MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / SendError

Method SendError

monitoring/monitoring.go:176–180  ·  view source on GitHub ↗

SendError sends an error to all monitoring services

(ctx context.Context, errType string, err errctx.Error)

Source from the content-addressed store, hash-verified

174
175// SendError sends an error to all monitoring services
176func (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.

Callers

nothing calls this directly

Calls 1

SendErrorMethod · 0.65

Tested by

no test coverage detected