From sentry
Queries Sentry events and issues with advanced filters for environment, release, users, tags, time range, event type, and status. Analyzes error patterns, extracts insights, and suggests follow-ups.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sentry:query-eventsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
sentry:query-events - Run custom queries on Sentry events and issues with advanced filtering
sentry:query-events - Run custom queries on Sentry events and issues with advanced filtering
/query-events [arguments]
Run custom queries on Sentry events and issues using advanced filtering to find specific errors, analyze patterns, or extract insights.
This command provides flexible querying capabilities for Sentry data with support for filters on environment, release, user, tags, and more.
/query-events [project-name] [query-expression]
User: /query-events api-service Find all errors in production for user emails ending in @enterprise.com in the last 7 days
Claude: Running custom query on api-service...
## Query Results
**Query:** Errors in production environment for enterprise users (last 7 days)
**Filters Applied:**
- Environment: production
- User email: *@enterprise.com
- Event type: error
- Time range: Last 7 days
- Status: unresolved
### Results: 23 matching issues, 456 total events
### Top Issues for Enterprise Users
1. **API Rate Limit Exceeded**
- Events: 189
- Users: 12
- Pattern: Heavy API usage from automated systems
- Tags: tier=enterprise, api_version=v2
2. **Database Connection Timeout**
- Events: 134
- Users: 8
- Pattern: Concurrent query limit reached
- Tags: tier=enterprise, db_pool=primary
3. **Insufficient Storage Quota**
- Events: 78
- Users: 5
- Pattern: Enterprise plans hitting 10GB limit
- Tags: tier=enterprise, feature=uploads
4. **Permission Denied: Admin Action**
- Events: 34
- Users: 4
- Pattern: Users attempting cross-org actions
- Tags: tier=enterprise, action=admin
5. **GraphQL Query Complexity Exceeded**
- Events: 21
- Users: 3
- Pattern: Complex nested queries
- Tags: tier=enterprise, api=graphql
### Insights
- Enterprise users hitting different limits than standard users
- Rate limiting and connection pooling need enterprise-tier scaling
- Storage quotas may need adjustment for enterprise plans
### Affected Users
- [email protected] (89 events)
- [email protected] (67 events)
- [email protected] (145 events)
- [email protected] (98 events)
### Recommendations
1. **Immediate**: Increase rate limits for enterprise tier
2. **High**: Scale database connection pool for enterprise workloads
3. **Medium**: Review storage quotas and upgrade paths
4. **Low**: Document GraphQL query complexity limits
Would you like me to investigate any specific issue or user in detail?
# Find errors in specific environment
environment:production is:unresolved
# Find issues affecting a specific user
user.email:[email protected]
# Find events from a specific release
release:v2.3.0
# Find slow transactions
event.type:transaction transaction.duration:>2000
# Combine multiple filters
environment:production release:v2.* user.id:12345 level:error
# Find issues with specific tags
tag.payment_method:stripe tag.status:failed
project-name (optional): Sentry project slugquery-expression (optional): Sentry query syntax or natural language description/investigate-errors: Pre-built error investigation workflow/analyze-performance: Performance-specific queries/check-releases: Release-filtered queriesnpx claudepluginhub thebushidocollective/han --plugin hashi-sentryQueries Sentry errors, triages issues, and checks release health via REST API. Useful for debugging exceptions, investigating crashes, stack traces, and monitoring stability.
Investigates recent errors and exceptions in Sentry projects: fetches issues via MCP, analyzes frequency, trends, stack traces, user impact, and suggests fixes for quick triage.
Queries Sentry API to list issues, inspect events, and summarize production errors using bundled Python script. Requires SENTRY_AUTH_TOKEN for read-only access.