Skip to content

feat: integrate Sentry error tracking with source map support #1395

@kaizhou-lab

Description

@kaizhou-lab

Summary

Integrate Sentry SDK for error tracking in both main and renderer processes, with automatic source map upload during CI builds.

Changes

  • Add @sentry/electron for error capture in main and renderer processes
  • Add @sentry/vite-plugin for automatic source map upload during production builds
  • Configure electron.vite.config.ts with hidden source maps and Sentry plugin (CI-only)
  • Add Sentry environment variables to CI build workflow (_build-reusable.yml)
  • DSN injected via SENTRY_DSN env var (not hardcoded, safe for open-source)

GitHub Secrets Required

Secret Purpose
SENTRY_DSN Client DSN for error reporting
SENTRY_AUTH_TOKEN Organization token for source map upload
SENTRY_ORG Sentry organization slug
SENTRY_PROJECT Sentry project slug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions