PagerDuty / go-pagerduty

go client library for PagerDuty v2 API
https://v2.developer.pagerduty.com/docs/rest-api
Apache License 2.0
285 stars 241 forks source link

[CSGI-3093] Add rate limit headers handling #521

Closed imjaroiswebdev closed 5 months ago

imjaroiswebdev commented 5 months ago

Implements the handling of PagerDuty REST API ratelimit headers, through an exponential backoff, plus Jitter algorithm. Described here.

This will make part of the solution to https://github.com/PagerDuty/terraform-provider-pagerduty/issues/824, once this client get updated into PagerDuty TF provider dependencies.

ChuckCrawford commented 5 months ago

Now that https://github.com/PagerDuty/go-pagerduty/pull/522 is merged we should be able to close this @imjaroiswebdev