Sentry

From Arvo-AI/aurora · View interactive version

Sentry is an AI agent skill from the GitHub repository Arvo-AI/aurora. Sentry error tracking integration for searching issues, fetching stacktraces, listing projects, and running Discover event searches during RCA investigations

How to use this skill

Skill file

Sentry Integration

Overview

Sentry error tracking integration for querying issues, events, and project data during Root Cause Analysis. Sentry is a REMOTE service. Use ONLY the query_sentry API tool. All data is accessed via the Sentry web API with the resource_type parameter.

Instructions

Tool Usage

query_sentry(resource_type=TYPE, query=QUERY, stats_period=PERIOD, project=PROJECT, limit=N)

Resource Types

  1. 'issues' -- Search issues. query is a Sentry search expression (e.g. is:unresolved level:error)
  2. 'issue_detail' -- Get metadata for one issue. query is the numeric Sentry issue ID
  3. 'issue_event' -- Get the latest event for an issue with full stacktrace + breadcrumbs + tags. query is the issue ID
  4. 'projects' -- List projects in the connected Sentry org
  5. 'events' -- Discover-style event table search. query is a Sentry search expression

Sentry Search Syntax

stats_period

Common Searches

RCA Investigation Workflow

Step 1 -- Find the issue triggered by the alert:

If the alert webhook included an issueId, fetch the issue directly:

query_sentry(resource_type='issue_detail', query='ISSUE_ID')

Otherwise search recent unresolved issues:

query_sentry(resource_type='issues', query='is:unresolved level:error', stats_period='1h')

Step 2 -- Fetch the full stacktrace and breadcrumbs:

query_sentry(resource_type='issue_event', query='ISSUE_ID')

The response includes entries[].data.values[].stacktrace.frames, breadcrumbs, tags, user, release, and environment -- everything needed to identify the failing code path.

Step 3 -- Check the project context:

query_sentry(resource_type='projects')

Use this to map the Sentry project slug to a code repository or service.

Step 4 -- Look for related events in the same time window:

query_sentry(resource_type='events', query='project:PROJECT_SLUG environment:production', stats_period='1h')

This surfaces clustering -- whether the error coincides with other issues from the same release, environment, or user.

Step 5 -- Check if the issue is a regression:

Look at the issue's firstSeen and lastSeen in the issue_detail response. If firstSeen is recent and the affected release differs from the previous stable release, it's likely a regression.

Important Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.