Error Tracker
Overview
Continuously monitor application logs, exception streams, and error events to detect regressions, group similar errors, prioritize by impact, and route to the right team for resolution.
When to Use
- Monitoring production application logs in real-time
- Detecting new error patterns after a deployment
- Auto-creating tickets for critical bugs that need immediate attention
- Generating weekly error trend reports for engineering teams
- Suppressing known/expected errors to reduce noise
Instructions
- Accept inputs: log source (file path, CloudWatch ARN, Datadog query, Sentry DSN), monitoring interval, severity thresholds, notification channels.
- Connect to the log source and ingest error events.
- Parse and normalize error payloads: extract message, stack trace, frequency, first/last seen, affected users.
- Group similar errors using stack trace fingerprinting to de-duplicate.
- Classify severity: Critical (production down), High (feature broken), Medium (degraded performance), Low (cosmetic).
- For new Critical/High errors: create GitHub issue or Jira ticket with full context, stack trace, and reproduction steps.
- Send Slack/PagerDuty alert for Critical errors.
- Return error digest: new errors, resolved errors, top 10 by frequency, error rate trend.
Environment
LOG_SOURCE=cloudwatch|sentry|datadog|file
LOG_GROUP_ARN=arn:aws:logs:us-east-1:123456789:log-group/app
GITHUB_TOKEN=ghp_your_token
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/...
CRITICAL_THRESHOLD=1
HIGH_THRESHOLD=10
Examples
Input:
source: sentry
project: skillsdotmd-web
interval: 5_minutes
alert_channel: #ops-errors
create_issues: true
Output:
Error Digest (last 5 min)
New errors: 3
CRITICAL: TypeError: Cannot read property 'id' of undefined (checkout.ts:142) - 47 occurrences
HIGH: 500 error on /api/skills endpoint - 12 occurrences
GitHub issues created: 2
Slack alerts sent: 1 (critical)
Error rate: +23% vs previous 5 min
1---2name: error-tracker3description: Monitor application logs and error streams to detect, group, and triage errors by severity and frequency. Automatically creates GitHub issues or Jira tickets for new errors and notifies the on-call team.4license: MIT5---67# Error Tracker89## Overview1011Continuously monitor application logs, exception streams, and error events to detect regressions, group similar errors, prioritize by impact, and route to the right team for resolution.1213---1415## When to Use1617- Monitoring production application logs in real-time18- Detecting new error patterns after a deployment19- Auto-creating tickets for critical bugs that need immediate attention20- Generating weekly error trend reports for engineering teams21- Suppressing known/expected errors to reduce noise2223---2425## Instructions26271. Accept inputs: log source (file path, CloudWatch ARN, Datadog query, Sentry DSN), monitoring interval, severity thresholds, notification channels.282. Connect to the log source and ingest error events.293. Parse and normalize error payloads: extract message, stack trace, frequency, first/last seen, affected users.304. Group similar errors using stack trace fingerprinting to de-duplicate.315. Classify severity: Critical (production down), High (feature broken), Medium (degraded performance), Low (cosmetic).326. For new Critical/High errors: create GitHub issue or Jira ticket with full context, stack trace, and reproduction steps.337. Send Slack/PagerDuty alert for Critical errors.348. Return error digest: new errors, resolved errors, top 10 by frequency, error rate trend.3536---3738## Environment3940```41LOG_SOURCE=cloudwatch|sentry|datadog|file42LOG_GROUP_ARN=arn:aws:logs:us-east-1:123456789:log-group/app43GITHUB_TOKEN=ghp_your_token44SLACK_WEBHOOK_URL=https://hooks.slack.com/services/...45CRITICAL_THRESHOLD=146HIGH_THRESHOLD=1047```4849---5051## Examples5253**Input:**54```55source: sentry56project: skillsdotmd-web57interval: 5_minutes58alert_channel: #ops-errors59create_issues: true60```6162**Output:**63```64Error Digest (last 5 min)65New errors: 366 CRITICAL: TypeError: Cannot read property 'id' of undefined (checkout.ts:142) - 47 occurrences67 HIGH: 500 error on /api/skills endpoint - 12 occurrences68GitHub issues created: 269Slack alerts sent: 1 (critical)70Error rate: +23% vs previous 5 min71```