No slash command · from sentry
Runs custom queries on Sentry events and issues with advanced filtering by environment, release, user, tags, and time range.
Ships in sentry. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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 queriesWhat SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/analyze-performanceAnalyze performance metrics and identify slow transactions in Sentry/check-releasesCheck release health and compare error rates across deployments/incident-responseManage incident response workflow with Sentry alerts and issue tracking/investigate-errorsInvestigate recent errors and exceptions in your Sentry projectsnpx claudepluginhub thebushidocollective/han --plugin sentry-mcpOther plugins' skills for the same job