Add Sentry integration - #32
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Integrates Sentry into MōVoice’s main and renderer processes to capture basic launch/crash telemetry, and updates the Vite main-process bundle configuration to account for additional runtime externals introduced by the Sentry Node SDK.
Changes:
- Add Sentry initialization for the renderer (
@sentry/react) and wire React root error callbacks to Sentry. - Add Sentry initialization for the main process (
@sentry/node) and capture a launch event plus initialization failures. - Expand Vite main-process Rollup externals to include Node built-ins and Sentry’s hook-related dependencies; add Sentry dependencies to
package.json/lockfile.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| vite.config.ts | Expands main-process Rollup externals to include Node built-ins and Sentry-related runtime deps. |
| src/renderer/instrument.ts | Initializes Sentry for the renderer process and tags events with process=renderer. |
| src/renderer/index.tsx | Imports renderer instrumentation and routes React root errors to Sentry handlers. |
| src/main/instrument.ts | Initializes Sentry for the main process, tags events, and emits launch/session telemetry. |
| src/main/index.ts | Imports main instrumentation and flushes Sentry on initialization failure. |
| package.json | Adds @sentry/node and @sentry/react dependencies. |
| package-lock.json | Locks Sentry and transitive dependencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Dmytro-Fedoryshyn
marked this pull request as ready for review
July 8, 2026 09:48
vlad-lubenskyi
requested changes
Jul 8, 2026
vlad-lubenskyi
requested changes
Jul 8, 2026
vlad-lubenskyi
approved these changes
Jul 8, 2026
vlad-lubenskyi
approved these changes
Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In this changeset, we have integrated Sentry into MōVoice to track basic launch and crash telemetry.
Issue: #29