Skip to content

feat(issues): Match related issues rate limit to group details - #131404

Merged
Christinarlong merged 1 commit into
masterfrom
jr/related-issues-rate-limit
Nov 25, 2026
Merged

Christinarlong merged 1 commit into
masterfrom
jr/related-issues-rate-limit

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Raises the per-user and per-IP GET limit on GroupRelatedEndpoint from 15 requests per 5 seconds to 5 per second, the same limit GroupDetailsEndpoint uses.

The Sentry MCP get_issue_details tool 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:

  • Org limit: keep it at 15/s, or match group details at 5/s?
  • Seer load: this can roughly double the peak per-user request rate into the similar-stack-trace lookup. Confirm with the Seer team that this is fine before merging.

via @Christinarlong.

--

View Session [Sentry]

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
Christinarlong merged commit d1e3594 into master Nov 25, 2026
84 checks passed
@Christinarlong
Christinarlong deleted the jr/related-issues-rate-limit branch November 25, 2026 22:11
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants