question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Show API quota status on extension options page

See original GitHub issue

Description

We already query the API to check the token scope, it would be better to make more use of the response.

The following headers are available in the response:

  • x-ratelimit-limit: total quota
  • x-ratelimit-remaining / x-ratelimit-used:: remaining/used quota
  • x-ratelimit-reset: time at which the quota will reset

We can show these info on the extension options page as an additional “feature”, which can also help debugging potential issues with rate limit.

Screenshot

No response

Example URL

chrome://extensions/?options=balgliakcbamepammkbcjdepogihccmj

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
kidonngcommented, Nov 21, 2021

What does the information look like? Can it be represented as one line of text?

Token quota: 34% left this hour

Yeah, one line would do it. I’d also show the reset time (API Quota: 34% left, resetting in 1234 seconds)

1reaction
fregantecommented, Nov 21, 2021

Rather than seconds I’d use a fixed time. We can also add a “check/refresh” button anywhere near the field. For example

API quota: 34% left until 14:50. _Refresh_

The button would just need to dispatch an input event in the token field to refresh, probably.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Limits and Quotas on API Requests | Analytics Management API
This document describes the limits and quotas of requesting the Management APIs and Reporting APIs. Google Analytics is used by millions of ...
Read more >
Working with quotas | Documentation - Google Cloud
The Quotas page shows the quota names for the API. You can click on monitoring Show usage chart for each quota to see...
Read more >
Monitor API quotas - Google Workspace Admin Help
Option 2: All project quotas · Click the API you want to monitor. · Use the filters at the top of the page...
Read more >
chrome.storage - Chrome Developers
The Storage API provides an extension-specific way to persist user data and state. ... The options page immediately saves the new settings to...
Read more >
Quotas and limits | Cloud Functions for Firebase - Google
To increase quotas above the defaults listed here, go to the Cloud Functions Quotas Page, select the quota(s) you want to modify, click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found