Skip to content

Comments

chore(sc-65330): Improve error reporting for apps by reporting to Sentry#46

Merged
AFOJ merged 5 commits intomainfrom
chore/sc-65330/improve-error-reporting-for-apps-sentry
Jun 16, 2025
Merged

chore(sc-65330): Improve error reporting for apps by reporting to Sentry#46
AFOJ merged 5 commits intomainfrom
chore/sc-65330/improve-error-reporting-for-apps-sentry

Conversation

@HappyPaul55
Copy link
Contributor

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.

Copilot AI review requested due to automatic review settings May 28, 2025 11:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves error reporting by integrating Sentry into the application, with updates to error handling and build configuration.

  • In vite.config.ts, the Sentry Vite plugin is conditionally added based on environment variables.
  • In src/main.tsx and instrument.ts, Sentry is initialized to capture app errors.
  • The package.json and GitHub workflow configuration are updated to include required dependencies and environment variables for Sentry.

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vite.config.ts Added conditional injection of the Sentry Vite plugin with a spread operator.
src/main.tsx Imported Sentry and an instrumentation module to initialize error reporting.
src/instrument.ts New file initializing Sentry when a DSN is provided via URL parameters.
package.json Added Sentry dependencies and removed react-error-boundary.
.github/workflows/subworkflow-build.yml Updated environment variable handling and build command to conditionally disable Sentry release.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@github-actions
Copy link

@AFOJ AFOJ merged commit 44e76b8 into main Jun 16, 2025
5 checks passed
@AFOJ AFOJ deleted the chore/sc-65330/improve-error-reporting-for-apps-sentry branch June 16, 2025 17:00
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.

2 participants