Sentry Error History
How to search it
Use the Sentry MCP.
- Orient. If you don't know the project slug and organization:
find_organizations
find_projects
- Search for issues related to the target.
search_issues (natural language, e.g., "errors in PaymentService timeout", "unhandled exceptions in uploadFile")
Build queries from the exception class names the target handles, its function or class name, the error message strings it checks for, and its file path.
- Narrow by release and time window.
search_issue_events (filter by release, time, environment, trace ID, tags)
get_issue_tag_values (for an issue, see distribution across versions, users, environments)
For a suspected issue, check first seen and last seen (does the stop line up with the target's ship date?), the affected releases (which saw it, and which was the fix?), and the frequency trajectory (did it spike, then get resolved?).
- Pull the full event for context.
get_sentry_resource (pass a Sentry URL or type+ID)
Does the stack trace pass through the target code? Do the tags and breadcrumbs match the conditions the target defends against?
- Check releases that landed near the target.
find_releases (around the commit date of the target)
Cross-reference release version with the PR's merge date.
- Use Seer sparingly.
analyze_issue_with_seer
Seer's AI root-cause analyses are a hypothesis generator. Treat them as inference, not authoritative. The actual events and stack traces are the primary evidence.
What to return
For each relevant issue:
- Issue ID and title
- Project and organization
- First seen / last seen timestamps
- Event count (and sampling rate if known)
- Affected releases
- A representative stack trace snippet showing relevance to the target (verbatim excerpt, not summary)
- First/last-seen correlation with the target's ship date
- Link to the issue
- Any author comments or resolution notes