Skip to content

Commit

Permalink
fix: change deploy directory & add sentry error ignore list
Browse files Browse the repository at this point in the history
  • Loading branch information
keenthekeen committed Feb 2, 2025
1 parent c73b3b0 commit 25d5432
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ npm-debug.log*
.runtimeconfig.json

# Sentry Config File
.env.sentry-build-plugin
.sentryclirc
2 changes: 1 addition & 1 deletion firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"hosting": [
{
"target": "app",
"public": "www",
"public": "www/browser",
"ignore": [
"firebase.json",
"**/.*",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org docchula --project flickplayer www && sentry-cli sourcemaps upload --org docchula --project flickplayer www"
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org docchula --project flickplayer www/browser && sentry-cli sourcemaps upload --org docchula --project flickplayer www/browser"
},
"private": true,
"dependencies": {
Expand Down
9 changes: 5 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ if (environment.production) {
Sentry.replayIntegration(),
],
// Tracing
tracesSampleRate: 0.1, // Capture 100% of the transactions
tracesSampleRate: 0.001, // Capture 100% of the transactions
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
tracePropagationTargets: ['https://flick-man-app.docchula.com', 'https://flick-man-cdn.docchula.com'],
// Session Replay
replaysSessionSampleRate: 0.01, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
replaysSessionSampleRate: 0, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
replaysOnErrorSampleRate: 0.1, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.

// Ignore some errors
ignoreErrors: [
Expand All @@ -32,7 +32,8 @@ if (environment.production) {
'Http failure response', ' 401', ' 404', ' 504', 'Unknown Error',
// Video player errors
'Picture-in-Picture', 'requestFullscreen', 'triggered by a user activation', 'Illegal invocation',
'not allowed by the user agent', 'FullScreen', 'InvalidStateError', 'video track',
'not allowed by the user agent', 'FullScreen', 'InvalidStateError', 'video track', 'exitFullscreen',
'TextTrackCue', 'ResizeObserver',
],
});
}
Expand Down

0 comments on commit 25d5432

Please sign in to comment.