error-tracking logo

error-tracking

error tracking

SKILL.md

Full skill instructions

Error Tracking

Table of Contents

Overview

Set up comprehensive error tracking with Sentry to automatically capture, report, and analyze exceptions, performance issues, and application stability.

When to Use

  • Production error monitoring
  • Automatic exception capture
  • Release tracking
  • Performance issue detection
  • User impact analysis

Quick Start

Minimal working example:

npm install -g @sentry/cli
npm install @sentry/node @sentry/tracing
sentry init -d

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Sentry SetupSentry Setup, Node.js Sentry Integration
Express Middleware IntegrationExpress Middleware Integration
Python Sentry IntegrationPython Sentry Integration
Source Maps and Release ManagementSource Maps and Release Management, CI/CD Release Creation
Custom Error ContextCustom Error Context
Performance MonitoringPerformance Monitoring

Best Practices

✅ DO

  • Set up source maps for production
  • Configure appropriate sample rates
  • Track releases and deployments
  • Filter sensitive information
  • Add meaningful context to errors
  • Use breadcrumbs for debugging
  • Set user information
  • Review error patterns regularly

❌ DON'T

  • Send 100% of errors in production
  • Include passwords in context
  • Ignore configuration for environment
  • Skip source map uploads
  • Log personally identifiable information
  • Use without proper filtering
  • Disable tracking in production