What is Sentry Seer?
Sentry Seer is an AI-powered agent integrated into the Sentry error monitoring platform. It acts as an automated debugging assistant, leveraging the rich context Sentry collects from production environments—such as error details, stack traces, and logs—to diagnose issues, identify their root cause, and even generate suggested code fixes. Its primary goal is to drastically reduce the time developers spend on triaging and resolving bugs.
Key Features
- Automated Root Cause Analysis: Seer automatically analyzes new issues, using context from stack traces, distributed traces, and your codebase to pinpoint the exact cause of an error.
- AI-Generated Fixes: For identified issues, Seer can generate concrete code patches. It can even open a pull request in your connected GitHub repository with the suggested fix.
- Issue Triage: It intelligently scans incoming issues to determine their “actionability,” helping teams prioritize bugs that can be resolved with a code change.
- Natural Language Explanations: Seer provides clear, human-readable explanations of complex errors, making it easier for developers to understand the problem without deep investigation.
- Context-Aware: It utilizes a wide range of data for its analysis, including error messages, stack traces, distributed traces, structured logs, and performance profiles from your application.
Use Cases
- Accelerating Bug Resolution: Developers can use Seer to get an immediate diagnosis and a potential fix for production errors, turning hours of debugging into minutes.
- Proactive Triage: Engineering managers can rely on Seer to automatically sort and prioritize incoming issues, assigning them to the right teams based on the analysis.
- Onboarding New Developers: Junior developers can use Seer’s explanations to better understand complex bugs and learn the codebase more quickly.
- Improving Code Quality: By suggesting precise fixes, Seer helps teams not only resolve bugs but also improve the overall quality and resilience of their code.
Getting Started
Getting started with Sentry Seer is straightforward as it’s built into the Sentry workflow.
- Ensure you have a Sentry account with a paid plan (Team, Business, or Enterprise).
- Connect your GitHub repository to your Sentry organization to give Seer access to your codebase.
- When a new issue appears in Sentry, navigate to its detail page.
- Click the “Find Root Cause” or “Get a Fix” button.
- Seer will analyze the issue and provide a detailed explanation and a suggested code fix, which you can review and apply.
// Example of a Sentry Seer interaction (conceptual)
// 1. An error is reported in Sentry: // TypeError: Cannot read properties of null (reading ‘id’) // at processUserData (/app/services/user.js:42:15)
// 2. Developer clicks “Get a Fix” in the Sentry UI.
// 3. Seer analyzes the stack trace and surrounding code, then suggests a fix:
/* Sentry Seer Suggestion:
The error occurs because the ‘user’ object is null when ‘processUserData’ is called. Adding a null check will prevent the crash.
Suggested Fix in /app/services/user.js: */
- function processUserData(user) {
- const userId = user.id;
- // … more logic
-
}
- function processUserData(user) {
- if (!user) {
- console.warn(“processUserData called with a null user.”);
- return;
- }
- const userId = user.id;
- // … more logic
- }
Pricing
Sentry Seer is available as a subscription add-on to any paid Sentry plan (Team, Business, or Enterprise). The subscription costs $20 per month and includes $25 in credits for “Issue Scan” and “Issue Fix” actions. Any usage beyond the included credits is billed on a pay-as-you-go basis against your organization’s budget. Sentry offers a 14-day free trial for Seer.