Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR integrates Sentry error reporting into the application, adding configuration for both development and CI environments.
- Add and configure the Sentry Vite plugin and enable source maps for builds
- Initialize Sentry at runtime via a new
instrument.tsfile and import it inmain.tsx - Update dependencies and CI workflow to pass Sentry credentials and toggle plugin usage on tagged releases
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| vite.config.ts | Inject sentryVitePlugin into Vite plugins and enable sourcemap |
| src/main.tsx | Import Sentry runtime hook (./instrument) and Sentry package |
| src/instrument.ts | New file to initialize Sentry based on URL query parameters |
| package.json | Add @sentry/react and @sentry/vite-plugin; remove unused react-error-boundary |
| .github/workflows/subworkflow-build.yml | Pass Sentry secrets into CI and conditionally disable plugin on non-tag builds |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)
src/instrument.ts:1
- New error instrumentation logic in
instrument.tsisn't covered by tests. Please add unit tests to verify DSN and tunnel parameter parsing and ensure Sentry is initialized as expected.
import * as Sentry from "@sentry/react";
|
Build for commit 21c7417 deployed to: https://github-pr-77.ci.next.deskprodemo.com URLs: |
AFOJ
approved these changes
Jun 6, 2025
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.
This PR improves error reporting for apps by integrating Sentry. It includes the necessary configurations and updates to the main.tsx file to handle errors effectively.