Repository navigation
feat(mcp): Stop retrying the related issues lookup - #2474
sentry-junior[bot] wants to merge 1 commit into
Conversation
The related issues endpoint allows 15 requests per 5 seconds per user. get_issue_details and the update_issue side quest drop its results when it fails, so retrying a 429 only adds up to 3 seconds to the tool call and spends more of that limit. Send /related/ through a transport with no retries. Co-Authored-By: Christina Long <60594860+Christinarlong@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
📊 MCP Server Token Cost ReportSummary
Per-Tool Breakdown
Note: This measures the static overhead of tool definitions sent to LLM clients with every request. Lower is better. MCP Apps viewsEach
The budget applies to raw bytes, and the view's generator fails over it. |
|
This PR has had no activity for 3 days. It closes in 2 days unless someone pushes, comments, or adds the |
|
Keeping this open as a draft; it's waiting on a decision about whether |
…tal mode (getsentry#2504) Removes the experimental gate on the related issues lookup in `get_issue_details`. Every session now gets the inline `relatedIssues` list and, when that list isn't empty, the `find_related_issues` suggestion. Until now only experimental sessions got either. `get_sentry_resource` uses the same handler for issue and event resources, so it changes too. The lookup still fails soft: a 429 or other failed `/related/` call leaves `relatedIssues` out, and the tool call still succeeds. **Before merging:** land getsentry/sentry#131404 (aligns the `/related/` rate limit with group details) and getsentry#2474 (stops retrying 429s). **Ordering with open PRs:** getsentry#2475 and getsentry#2476 change which relation types this lookup asks for. They touch the same file, so whichever merges second needs a rebase. <!-- junior-request-attribution:start --> via @Christinarlong. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0CGPBK9ND7%3A1795567437.650439 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0CGPBK9ND7%3A1795567437.650439) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0CGPBK9ND7%3A1795567437.650439/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Christina Long <60594860+Christinarlong@users.noreply.github.com>
|
This PR has had no activity for 3 days. It closes in 2 days unless someone pushes, comments, or adds the |
Sentry's
/issues/{id}/related/endpoint allows 15 GET requests per 5 seconds per user.get_issue_details(experimental for now) and theupdate_issueresolve side quest only add its results to their response, and they already drop them when the lookup fails. With the shared retry policy, a 429 is retried up to twice, which adds up to 3 seconds to the tool call and spends more of the same per-user limit. Most of that limit goes to heavy automated users, and that's who hits it.getRelatedIssuesnow goes through a second transport that uses the same policy withmaxRetries: 0. Every other endpoint keeps its retries.find_related_issuesuses the same method, so a 429 or 503 there now goes straight to the agent as a tool error instead of being retried. That seemed fine because the agent can just call it again. If we'd rather keep retries for the explicit tool, the alternative is a per-call option.via @Christinarlong.
--
View Session [Sentry]