Repository navigation
feat(issues): Match related issues rate limit to group details - #131404
Merged
Merged
Conversation
Raise the per-user and per-IP GET limit on GroupRelatedEndpoint from 15 per 5 seconds to 5 per second, the same as GroupDetailsEndpoint. Callers fetch an issue and its related issues together, so the related endpoint should not throttle first. The organization limit stays at 15 per second. Co-Authored-By: Christina Long <[email protected]>
Christinarlong
marked this pull request as ready for review
November 25, 2026 18:32
cvxluo
approved these changes
Nov 25, 2026
github-actions Bot
pushed a commit
to Fields-Education/sentry-mcp
that referenced
this pull request
Nov 28, 2026
…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 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Raises the per-user and per-IP GET limit on
GroupRelatedEndpointfrom 15 requests per 5 seconds to 5 per second, the same limitGroupDetailsEndpointuses.The Sentry MCP
get_issue_detailstool will soon fetch related issues alongside every issue fetch. It already calls group details, which allows 5/s per user. At 15 per 5s,/related/would throttle first. Agents that fetch issues in parallel batches would then silently get no related issues for part of each burst. The 15/5s value came from the older related-issues endpoint, and nothing in the code explains why it was chosen.The organization limit stays at 15/s. That bucket only applies to Sentry app (integration) tokens, and matching group details there would lower it to 5/s.
Open decisions:
via @Christinarlong.
--
View Session [Sentry]