google-api-ruby-client icon indicating copy to clipboard operation
google-api-ruby-client copied to clipboard

add hook for http requests

Open josh-m-sharpe opened this issue 2 years ago • 0 comments

There's no good way to count read and write requests (e.g. for the sheets v4 api) - which is rate limited.

If this gem allowed the configuration of a lambda for when a http request is made, then the application using this gem would be free to log/count requests and then mitigate over usage.

As it stands now it's a bit of craps shoot. No way to tell when the client is reaching its quota.

josh-m-sharpe avatar Jan 06 '24 02:01 josh-m-sharpe