Skip to content

Commit fc68756

Browse files
committed
feat: integrate Sentry for error tracking and performance monitoring
- Added @sentry/vite-plugin to package.json for Vite integration. - Wrapped the main App component with Sentry's withProfiler for performance monitoring. - Updated AppRouter to use SentryRoutes for enhanced routing error tracking. - Initialized Sentry in mount.ts with environment and PII settings. - Added breadcrumbs for user authentication events in AuthContextOnboarding. - Logged breadcrumb for visiting the Login page in LoginView. - Configured Vite to include Sentry plugin and enabled sourcemaps for better debugging.
1 parent 78be8c0 commit fc68756

File tree

10 files changed

+569
-62
lines changed

10 files changed

+569
-62
lines changed

.env.template

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Sentry DSN
2-
VITE_SENTRY_DSN=
1+
VITE_ENVIRONMENT=
32

43
# OpenID Connect Configuration for Onboarding API
54
OIDC_ISSUER=
@@ -10,11 +9,9 @@ OIDC_REDIRECT_URI=http://localhost:5173
109

1110
POST_LOGIN_REDIRECT=http://localhost:5173
1211

13-
1412
# Location of the API Backend
1513
API_BACKEND_URL=
1614

17-
1815
# Cookie Secret
1916
# Replace this value with a strong, randomly generated string (at least 32 characters).
2017
# Example for generation in Node.js: require('crypto').randomBytes(32).toString('hex')
@@ -23,3 +20,6 @@ SESSION_SECRET=
2320

2421
FEEDBACK_SLACK_URL=
2522
FEEDBACK_URL_LINK=
23+
24+
# Sentry DSN
25+
VITE_SENTRY_DSN=

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ notes.md
3030
tmp/
3131

3232
public/frontend-config.json
33+
34+
# Sentry Config File
35+
.env.sentry-build-plugin

0 commit comments

Comments
 (0)