MCPcopy
hub / github.com/prometheus/client_golang / PushContext

Method PushContext

prometheus/push/push.go:132–134  ·  view source on GitHub ↗

PushContext is like Push but includes a context. If the context expires before HTTP request is complete, an error is returned.

(ctx context.Context)

Source from the content-addressed store, hash-verified

130//
131// If the context expires before HTTP request is complete, an error is returned.
132func (p *Pusher) PushContext(ctx context.Context) error {
133 return p.push(ctx, http.MethodPut)
134}
135
136// Add works like push, but only previously pushed metrics with the same name
137// (and the same job and other grouping labels) will be replaced. (It uses HTTP

Callers

nothing calls this directly

Calls 1

pushMethod · 0.95

Tested by

no test coverage detected