Skip to content

Integrate Sentry for error tracking and monitoring #71

@cursor

Description

@cursor

Description

The audit identified that there's no error tracking service integrated. Sentry would provide production error monitoring and alerting.

Context

Current state:

  • No error tracking service
  • Errors only in console/logs
  • No alerting for production errors
  • Difficult to debug production issues

Requirements

  1. Install and Configure Sentry

    • Install @sentry/nextjs
    • Configure DSN and environment
    • Set up source maps
  2. Error Tracking

    • Replace console.error with Sentry.captureException
    • Track API route errors
    • Track client-side errors
    • Add user context
  3. Performance Monitoring

    • Track API route performance
    • Monitor slow queries
    • Set up alerts
  4. Integration

    • Add to error.tsx
    • Add to API error handlers
    • Configure release tracking

Acceptance Criteria

  • Sentry installed and configured
  • Errors tracked in production
  • Alerts configured
  • Performance monitoring active
  • Documentation updated

Related

Priority

High - Critical for production monitoring

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions