Skip to main content

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

The explain 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

  1. Trigger Analysis: The command sends the issue to Seer AI for analysis
  2. Poll Status: The CLI polls the analysis status every few seconds
  3. Extract Root Causes: Once complete, root causes are extracted from the analysis steps
  4. Display Results: Formatted output shows the identified causes with context
The analysis may take several minutes for complex issues. Progress is shown via a spinner (hidden in --json mode).

Requirements

Seer AI must be enabled for your organization. If Seer is not available, you’ll see an error with a link to enable it in your organization settings.

Prerequisites

  • Seer AI enabled in organization settings
  • Available Seer AI budget/quota
  • Organization has AI features enabled

Common Errors

Seer not enabled:
No budget:
AI disabled in settings:

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 --force is 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