-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh(app): better application monitoring (#84)
* enh(web): refactor link navigation * enh(app): better sentry configuration * fix: headless dialog
- Loading branch information
1 parent
353d463
commit 3f7497d
Showing
26 changed files
with
213 additions
and
240 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
'@snipcode/domain': patch | ||
'@snipcode/front': patch | ||
'@snipcode/backend': patch | ||
'@snipcode/web': patch | ||
--- | ||
|
||
Update the readme of the package domain | ||
Fix Next.js link navigation in the web app | ||
Configure Sentry in the frontend | ||
Update the CI to release the sourcemaps |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,12 @@ const nextConfigOptions = { | |
transpilePackages: ['@snipcode/front'], | ||
}; | ||
|
||
// For all available options, see: https://github.com/getsentry/sentry-webpack-plugin#options. | ||
const sentryWebpackPluginOptions = { | ||
dryRun: true, | ||
silent: true, | ||
}; | ||
|
||
// Make sure adding Sentry options is the last code to run before exporting, to | ||
// ensure that your source maps include changes from all other Webpack plugins | ||
module.exports = withSentryConfig(nextConfigOptions, sentryWebpackPluginOptions, { hideSourceMaps: true }); | ||
module.exports = withSentryConfig(nextConfigOptions, { | ||
hideSourceMaps: true, | ||
org: 'snipcode', | ||
project: 'frontend', | ||
// release: "[email protected]", | ||
authToken: process.env.SENTRY_AUTH_TOKEN, // An auth token is required for uploading source maps. | ||
silent: false, | ||
telemetry: false, | ||
}); |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
import * as Sentry from '@sentry/nextjs'; | ||
|
||
const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN; | ||
|
||
Sentry.init({ | ||
dsn: SENTRY_DSN, | ||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, | ||
environment: process.env.NODE_ENV || 'development', | ||
// Replay may only be enabled for the client-side | ||
integrations: [Sentry.replayIntegration()], | ||
enabled: process.env.NEXT_PUBLIC_SENTRY_ENABLED === 'true', | ||
// Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing. We recommend adjusting this value in production | ||
tracesSampleRate: 1.0, | ||
|
||
// Capture Replay for 10% of all sessions, plus for 100% of sessions with an error | ||
replaysSessionSampleRate: 0.1, | ||
replaysOnErrorSampleRate: 1.0, | ||
|
||
// Note: if you want to override the automatic release value, do not set a | ||
// `release` value here - use the environment variable `SENTRY_RELEASE`, so | ||
// that it will also get attached to your source maps | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import * as Sentry from '@sentry/nextjs'; | ||
|
||
const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN; | ||
|
||
Sentry.init({ | ||
dsn: SENTRY_DSN, | ||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, | ||
tracesSampleRate: 1.0, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import * as Sentry from '@sentry/nextjs'; | ||
|
||
const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN; | ||
|
||
Sentry.init({ | ||
dsn: SENTRY_DSN, | ||
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN, | ||
|
||
// Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing. We recommend adjusting this value in production | ||
tracesSampleRate: 1.0, | ||
}); |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export async function register() { | ||
// eslint-disable-next-line turbo/no-undeclared-env-vars | ||
if (process.env.NEXT_RUNTIME === 'nodejs') { | ||
await import('../sentry.server.config'); | ||
} | ||
|
||
// eslint-disable-next-line turbo/no-undeclared-env-vars | ||
if (process.env.NEXT_RUNTIME === 'edge') { | ||
await import('../sentry.edge.config'); | ||
} | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.