jupp0r / prometheus-cpp

Prometheus Client Library for Modern C++
Other
924 stars 326 forks source link

feat(push): allow timeout for HTTP requests #676

Closed gjasny closed 9 months ago

gjasny commented 9 months ago

Allows specification of a timeout for HTTP requests which is passed to curl. This allows the operation to eventually fail if the remote endpoint does not respond.

Default value for the added parameter maintains existing behaviour.