sentry issue explain
Get a root cause analysis for a Sentry issue using Seer AI. This command analyzes the issue and provides identified root causes, reproduction steps, and relevant code locations.Usage
Issue ID Formats
Theexplain command accepts the same issue identifier formats as view:
Parameters
string
required
Issue identifier in any supported format.
Flags
boolean
default:"false"
Force a fresh analysis even if one already exists. Useful when issue context has changed.Example:
boolean
default:"false"
Output results as JSON array of root causes.Example:
Examples
Basic Usage
Force Re-analysis
JSON Output
Sample Output
Human-Readable Format
JSON Format
How It Works
- Trigger Analysis: The command sends the issue to Seer AI for analysis
- Poll Status: The CLI polls the analysis status every few seconds
- Extract Root Causes: Once complete, root causes are extracted from the analysis steps
- Display Results: Formatted output shows the identified causes with context
--json mode).
Requirements
Prerequisites
- Seer AI enabled in organization settings
- Available Seer AI budget/quota
- Organization has AI features enabled
Common Errors
Seer not enabled:Notes
- The first analysis of an issue takes longer as Seer examines code context, stack traces, and event patterns.
- Subsequent runs reuse cached analysis unless
--forceis specified. - If multiple root causes are found, each is numbered (0, 1, 2, …) for reference in
sentry issue plan --cause N. - Organization context is required to access Seer AI. The command automatically resolves org from the issue ID.
See Also
- sentry issue plan - Generate a solution plan from root causes
- sentry issue view - View issue details
- sentry issue list - List issues from projects
- AI Debugging Guide - Complete guide to using Seer AI