Skip to content

feat(sentry): integrate error tracking with source map support#1396

Merged
piorpua merged 3 commits intomainfrom
test/sentry-sourcemaps
Mar 18, 2026
Merged

feat(sentry): integrate error tracking with source map support#1396
piorpua merged 3 commits intomainfrom
test/sentry-sourcemaps

Conversation

@kaizhou-lab
Copy link
Copy Markdown
Collaborator

Summary

  • Integrate @sentry/electron for error capture in main and renderer processes
  • Add @sentry/vite-plugin for automatic source map upload during CI builds
  • DSN injected via env var (SENTRY_DSN), not hardcoded — safe for open-source

Closes #1395

Test plan

  • Sentry receives errors from renderer process
  • Sentry receives errors from main process
  • Source maps uploaded successfully during CI build (28 main + 790 renderer files)
  • Source maps resolve to original TypeScript paths in Sentry dashboard
  • GitHub integration with code mapping configured
  • Unit tests pass (bun run test)

zk added 3 commits March 18, 2026 11:57
Add a deliberate throw in renderer/index.ts to confirm Sentry
receives source-mapped stack traces after CI build.
Source map upload and Sentry integration verified successfully.
@piorpua piorpua merged commit c45d2a9 into main Mar 18, 2026
19 of 20 checks passed
@piorpua piorpua deleted the test/sentry-sourcemaps branch March 18, 2026 05:53
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.

feat: integrate Sentry error tracking with source map support

2 participants