Rate limits from later headers shorten longer active limits
維護者通常 1 天內回覆
@sentry-junior 已經在處理了。
開始於 2026年11月16日。
評估
研究方向
從 _parse_rate_limits 和 sentry_sdk/transport.py 中對 self._disabled_until 的更新開始,接著閱讀連結的速率限制規格。檢查同一標頭中的限制、後續回應和 429 回應如何互相影響。針對較長限制仍有效時收到較短限制的情況,新增或更新 transport 測試;完成條件是該類別持續停用,直到較長限制到期。
由索引模型根據 Issue 內容生成。
描述
HttpTransportCore stores the last rate limit it sees for each category. A shorter limit therefore replaces a longer one that is still active, and the SDK starts sending that category before the longer quota expires.
_parse_rate_limitsyields one entry per group, andself._disabled_until.update(...)keeps the last one. With3600:error:organization, 0:error:project, errors are not limited.- The same overwrite happens across separate responses. A 429 also overwrites the all-categories limit (L359).
- The spec says: "If a new rate limit is shorter than an already stored rate limit, then keep the longer one."
@itsrayeedscodespace reported this bug in the Rust SDK in getsentry/sentry-rust#1409. A check of the other SDKs found the same behavior here.
via @szokeasaurusrex.
--
- 主要語言
- Python
- 星號
- 2.2k
- 分支
- 713
- 平均合併
- 1 天 16 分鐘
- 30 天內合併 PR
- 113
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
getsentry/sentry-python 的其他 Issue
-
perf: Source context re-reads the whole file via loader.get_source() for every frame可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉Improvement Python Waiting for: Product Owner
難度 2/5 1-3 小時 新手友好度 72/100
getsentry/sentry-python#8089 · 2 則留言 ·
維護者通常 1 天內回覆
-
Improvement Integration: Boto3 Python Traces
難度 2/5 1-3 小時 新手友好度 67/100
getsentry/sentry-python#8074 · 1 則留言 ·
維護者通常 1 天內回覆
-
`litellm`: Set request parameters可能重新可做 關聯的 PR 已關閉且未合併。 未關閉Improvement Python Spans
難度 2/5 1-3 小時 新手友好度 68/100
getsentry/sentry-python#7994 · 1 則留言 ·
維護者通常 1 天內回覆
-
`cohere`: Set request parameters可能重新可做 @mohanprasath-dev 於 44 天前認領,目前沒有進行中的 PR。 未關閉Improvement Python Spans Waiting for: Product Owner
難度 2/5 1-3 小時 新手友好度 65/100
getsentry/sentry-python#7992 · 2 則留言 ·
維護者通常 1 天內回覆
-
`openai`: Set request parameters可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉Improvement Python Spans
難度 2/5 1-3 小時 新手友好度 62/100
getsentry/sentry-python#7990 · 1 則留言 ·
維護者通常 1 天內回覆
查看 getsentry/sentry-python 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 85/100
521xueweihan/HelloGitHub#4599 ·
-
Bug Needs Triage
難度 2/5 1-3 小時 新手友好度 88/100
pandas-dev/pandas#72413 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
compiler-explorer/compiler-explorer#9710 ·
維護者通常 1 天內回覆
-
bug harness
難度 2/5 1-3 小時 新手友好度 72/100
mruangutai/harness#2687 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
modal-labs/modal-client#4158 ·