PushContext is like Push but includes a context. If the context expires before HTTP request is complete, an error is returned.
(ctx context.Context)
| 130 | // |
| 131 | // If the context expires before HTTP request is complete, an error is returned. |
| 132 | func (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 |