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

Method InjectHeaders

monitoring/monitoring.go:184–188  ·  view source on GitHub ↗

InjectHeaders adds monitoring headers to the provided HTTP headers. These headers can be used to correlate requests across different services.

(ctx context.Context, headers http.Header)

Source from the content-addressed store, hash-verified

182// InjectHeaders adds monitoring headers to the provided HTTP headers.
183// These headers can be used to correlate requests across different services.
184func (m *Monitoring) InjectHeaders(ctx context.Context, headers http.Header) {
185 for _, monitor := range m.monitors {
186 monitor.InjectHeaders(ctx, headers)
187 }
188}

Callers

nothing calls this directly

Calls 1

InjectHeadersMethod · 0.65

Tested by

no test coverage detected