Log rate-limit hits for observability
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- backend, observability
Research direction
Start at the rate-limit checks in workers/index.ts:261 and workers/lib/tools.ts:409, then read nearby logging patterns and the 429 response paths. Add one structured log at each site containing the proposed fields while preserving the response shape, and verify both paths emit the expected observability data.
Written by the indexing model from the issue text.
Description
Rate-limit checks return 429 with no log, so we have no signal in production for whether limits are firing, who is hitting them, or whether thresholds need tuning.
Sites
Proposal
Before the 429 response, emit one structured log line with: limit name, mailbox/principal id, current count, limit, and timestamp. Keep the response shape unchanged.
Why
Rate-limit hits are an abuse/incident signal. Without a log we can't answer "is the limit too tight?" or "is something looping?" from the dashboard.
Effort
~5 lines per site.
- Dominant language
- TypeScript
- Stars
- 8k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudflare/agentic-inbox
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
cloudflare/agentic-inbox#57 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
cloudflare/agentic-inbox#36 ·
-
Difficulty 2/5 Half a day Newbie friendliness 74/100
cloudflare/agentic-inbox#17 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
cloudflare/agentic-inbox#16 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
cloudflare/agentic-inbox#67 ·
All issues in cloudflare/agentic-inbox
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100