Sentry Issues
Fetch and analyze issues from Sentry error tracking.
- Rating
- 4.8 (116 reviews)
- Downloads
- 3,361 downloads
- Version
- 1.0.0
Overview
Fetch and analyze issues from Sentry error tracking.
Complete Documentation
View Source →
Sentry Issue Tracker
Fetch and analyze issues from Sentry using the Sentry API.
Prerequisites
- Sentry API token with
project:readandevent:readscopes - Organization slug and project slug
Authentication
Set the SENTRY_AUTH_TOKEN environment variable, or pass --token to the script.
export SENTRY_AUTH_TOKEN="your-token-here"
To create a token: Sentry → Settings → Auth Tokens → Create New Token
Quick Start
List recent unresolved issues:
python3 scripts/sentry_issues.py --org <org-slug> --project <project-slug>
Get issue details with stack trace:
python3 scripts/sentry_issues.py --org <org-slug> --project <project-slug> --issue <issue-id> --details
Script Reference
scripts/sentry_issues.py
Fetches issues from Sentry API.
Arguments:
--org(required): Sentry organization slug--project(required): Project slug--token: Auth token (defaults toSENTRY_AUTH_TOKENenv var)--issue: Specific issue ID to fetch details--details: Include stack trace and event details--query: Filter query (e.g.,is:unresolved,level:error)--limit: Max issues to return (default: 25)--sort: Sort bydate,new,priority,freq, oruser(default: date)
# List 10 most recent unresolved errors
python3 scripts/sentry_issues.py --org myorg --project myproject --query "is:unresolved level:error" --limit 10
# Get details for specific issue
python3 scripts/sentry_issues.py --org myorg --project myproject --issue 12345 --details
# Sort by most users affected
python3 scripts/sentry_issues.py --org myorg --project myproject --sort user --limit 5
Common Queries
| Query | Description |
|---|---|
| is:unresolved | Open issues only |
| is:resolved | Resolved issues |
| is:ignored | Ignored issues |
| level:error | Error-level issues |
| level:warning | Warning-level issues |
| firstSeen:>-24h | New in last 24 hours |
| lastSeen:>-1h | Active in last hour |
| assigned:me | Assigned to current user |
| has:release | Issues with release info |
is:unresolved level:error firstSeen:>-24hOutput Format
Issues are returned as JSON with key fields:
id: Issue ID for fetching detailstitle: Error message/titleculprit: Source locationcount: Number of eventsuserCount: Affected usersfirstSeen/lastSeen: Timestampslevel: error/warning/infostatus: unresolved/resolved/ignored
--details is used, includes:
- Full stack trace
- Latest event context
- Tags and metadata
- Browser/OS info (if available)
Installation
openclaw install sentry-issues
💻Code Examples
export SENTRY_AUTH_TOKEN="your-token-here"
To create a token: Sentry → Settings → Auth Tokens → Create New Token
## Quick Start
List recent unresolved issues:python3 scripts/sentry_issues.py --org <org-slug> --project <project-slug> --issue <issue-id> --details
## Script Reference
### `scripts/sentry_issues.py`
Fetches issues from Sentry API.
**Arguments:**
- `--org` (required): Sentry organization slug
- `--project` (required): Project slug
- `--token`: Auth token (defaults to `SENTRY_AUTH_TOKEN` env var)
- `--issue`: Specific issue ID to fetch details
- `--details`: Include stack trace and event details
- `--query`: Filter query (e.g., `is:unresolved`, `level:error`)
- `--limit`: Max issues to return (default: 25)
- `--sort`: Sort by `date`, `new`, `priority`, `freq`, or `user` (default: date)
**Examples:**# List 10 most recent unresolved errors
python3 scripts/sentry_issues.py --org myorg --project myproject --query "is:unresolved level:error" --limit 10
# Get details for specific issue
python3 scripts/sentry_issues.py --org myorg --project myproject --issue 12345 --details
# Sort by most users affected
python3 scripts/sentry_issues.py --org myorg --project myproject --sort user --limit 5Tags
Quick Info
Ready to Install?
Get started with this skill in seconds
Related Skills
4claw
4claw — a moderated imageboard for AI agents.
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
Adversarial Prompting
Adversarial analysis to critique, fix.