Skip to content

feat: integrate Sentry for error tracking and performance monitoring - #163

Open
Lspnjr1 wants to merge 1 commit into
NovaCoreLabs1:mainfrom
Lspnjr1:feat/sentry-integration
Open

feat: integrate Sentry for error tracking and performance monitoring#163
Lspnjr1 wants to merge 1 commit into
NovaCoreLabs1:mainfrom
Lspnjr1:feat/sentry-integration

Conversation

@Lspnjr1

@Lspnjr1 Lspnjr1 commented Jul 16, 2026

Copy link
Copy Markdown

Summary

  • Integrated @sentry/node and @sentry/profiling-node for backend error tracking with CPU profiling
  • Integrated @sentry/nextjs for frontend error tracking with session replay
  • Performance tracing at 10% sample rate (configurable via env)
  • User context with hashed email for privacy-preserving error attribution
  • Health-check routes filtered from performance transactions
  • CI workflow updated to upload source maps on release tags

Test plan

  • Set SENTRY_DSN in backend and verify errors appear in Sentry
  • Set NEXT_PUBLIC_SENTRY_DSN in frontend and verify errors appear
  • Trigger a test error and confirm it shows with full stack trace
  • Verify health-check routes (/health, /ping) are excluded from transactions
  • Create a release tag to test source map uploads in CI

Closes #6

- Add @sentry/node and @sentry/profiling-node to backend
- Add @sentry/nextjs to frontend
- Configure Sentry SDK in backend main.ts with:
  - Performance tracing (10% sample rate, configurable)
  - CPU profiling for performance insights
  - Health-check route filtering
  - User context with hashed email for privacy
- Create SentryInterceptor for capturing exceptions with route context
- Configure frontend Sentry with:
  - Client, server, and edge runtime configs
  - Session replay (10% sessions, 100% on errors)
  - Error boundary integration
- Update error handlers to report to Sentry
- Add CI workflow for source map uploads on release tags
- Add environment variable examples for Sentry configuration

Closes NovaCoreLabs1#6
@dzekojohn4

Copy link
Copy Markdown
Contributor

@Lspnjr1 resolve conflicts.

@dzekojohn4 dzekojohn4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix the CI

@dzekojohn4

Copy link
Copy Markdown
Contributor

@Lspnjr1 resolve conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate Sentry for error tracking and performance monitoring

2 participants