Skip to content

Commit

Permalink
fix: updating sentry packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pbastia committed May 31, 2024
1 parent 18eaa1a commit 379b3ca
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 102 deletions.
3 changes: 2 additions & 1 deletion app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const sentryWebpackPluginOptions = {
// Set to false to create a sentry release on build with the sentry CLI
// This will upload sourcemaps to sentry.
dryRun: true,
silent: true,
silent: false,
debug: true,
};

module.exports = withSentryConfig(nextConfig, sentryWebpackPluginOptions);
4 changes: 2 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
"@mui/icons-material": "^5.6.2",
"@mui/material": "^5.7.0",
"@rjsf/core": "^3.2.0",
"@sentry/nextjs": "^6.18.2",
"@sentry/react": "^6.18.2",
"@sentry/nextjs": "^6.19.6",
"@sentry/react": "^6.19.6",
"ajv": "^8.9.0",
"body-parser": "^1.20.0",
"bowser": "^2.11.0",
Expand Down
9 changes: 9 additions & 0 deletions app/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ function MyApp({ Component, pageProps }: AppProps) {
<BCGovTypography />
<Sentry.ErrorBoundary fallback={<Custom500 />}>
<RelayEnvironmentProvider environment={env}>
<button
type="button"
onClick={() => {
Sentry.captureException(new Error("test test test"));
throw new Error("Sentry Frontend Error");
}}
>
Throw error
</button>
{hasMounted && <SessionExpiryHandler />}
{component}
</RelayEnvironmentProvider>
Expand Down
6 changes: 6 additions & 0 deletions app/sentry.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ const SENTRY_DSN = SENTRY_ENVIRONMENT
? "https://[email protected]/6251728"
: null;

console.log("~~~~~~~~~~~~~~~ SENTRY CLIENT ~~~~~~~~~~~~~~~~~~~");
console.log(`DSN: ${SENTRY_DSN}`);
console.log(`ENV: ${SENTRY_ENVIRONMENT}`);
console.log(`REL: ${SENTRY_RELEASE}`);

Sentry.init({
dsn: SENTRY_DSN,
environment: SENTRY_ENVIRONMENT,
release: SENTRY_RELEASE,
tracesSampleRate: 1.0,
});
6 changes: 6 additions & 0 deletions app/sentry.server.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ const SENTRY_DSN = SENTRY_ENVIRONMENT
? "https://[email protected]/6251728"
: null;

console.log("~~~~~~~~~~~~~~~ SENTRY SERVER ~~~~~~~~~~~~~~~~~~~");
console.log(`DSN: ${SENTRY_DSN}`);
console.log(`ENV: ${SENTRY_ENVIRONMENT}`);
console.log(`REL: ${SENTRY_RELEASE}`);

Sentry.init({
dsn: SENTRY_DSN,
environment: SENTRY_ENVIRONMENT,
release: SENTRY_RELEASE,
tracesSampleRate: 1.0,
});
2 changes: 2 additions & 0 deletions app/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const handle = app.getRequestHandler();
app.prepare().then(async () => {
const server = express();

console.error(config.getEnv());

// trust the first proxy, so that secure cookies are set,
// even though the request reaching the express container is not secure
server.set("trust proxy", 1);
Expand Down
142 changes: 43 additions & 99 deletions app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1617,14 +1617,14 @@
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz#8be36a1f66f3265389e90b5f9c9962146758f728"
integrity sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg==

"@sentry/browser@6.18.2":
version "6.18.2"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-6.18.2.tgz#f980add635c242420a7f0c4dd3ed5668f1f39513"
integrity sha512-EsqKSNboi2gOiMuEwQranLucxrARi00y2vgUnaPXcqTKTlVlHDetoWHvq8/r29idA1JHGka5tDrwrmWccWIkrg==
dependencies:
"@sentry/core" "6.18.2"
"@sentry/types" "6.18.2"
"@sentry/utils" "6.18.2"
"@sentry/browser@6.19.7":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-6.19.7.tgz#a40b6b72d911b5f1ed70ed3b4e7d4d4e625c0b5f"
integrity sha512-oDbklp4O3MtAM4mtuwyZLrgO1qDVYIujzNJQzXmi9YzymJCuzMLSRDvhY83NNDCRxf0pds4DShgYeZdbSyKraA==
dependencies:
"@sentry/core" "6.19.7"
"@sentry/types" "6.19.7"
"@sentry/utils" "6.19.7"
tslib "^1.9.3"

"@sentry/cli@^1.73.0":
Expand All @@ -1640,17 +1640,6 @@
proxy-from-env "^1.1.0"
which "^2.0.2"

"@sentry/[email protected]":
version "6.18.2"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-6.18.2.tgz#d27619b7b4a4b90e2cfdc254d40ee9d630b251b9"
integrity sha512-r5ad/gq5S/JHc9sd5CUhZQT9ojQ+f+thk/AoGeGawX/8HURZYAgIqD565d6FK0VsZEDkdRMl58z1Qon20h3y1g==
dependencies:
"@sentry/hub" "6.18.2"
"@sentry/minimal" "6.18.2"
"@sentry/types" "6.18.2"
"@sentry/utils" "6.18.2"
tslib "^1.9.3"

"@sentry/[email protected]":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-6.19.7.tgz#156aaa56dd7fad8c89c145be6ad7a4f7209f9785"
Expand All @@ -1662,15 +1651,6 @@
"@sentry/utils" "6.19.7"
tslib "^1.9.3"

"@sentry/[email protected]":
version "6.18.2"
resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-6.18.2.tgz#fdb8536f61899fd48f3d1b49a6957348ad729ec5"
integrity sha512-d0AugekMkbnN12b4EXMjseJxtLPc9S20DGobCPUb4oAQT6S2oDQEj1jwP6PQ5vtgyy+GMYWxBMgqAQ4pjVYISQ==
dependencies:
"@sentry/types" "6.18.2"
"@sentry/utils" "6.18.2"
tslib "^1.9.3"

"@sentry/[email protected]":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-6.19.7.tgz#58ad7776bbd31e9596a8ec46365b45cd8b9cfd11"
Expand All @@ -1680,25 +1660,16 @@
"@sentry/utils" "6.19.7"
tslib "^1.9.3"

"@sentry/integrations@6.18.2":
version "6.18.2"
resolved "https://registry.yarnpkg.com/@sentry/integrations/-/integrations-6.18.2.tgz#caed0092e8a6c9fb0b8b7efd2deef946ca76e626"
integrity sha512-jzEH15m1dewzma2Fp0ENNRUDEOI3gGPfC/+lsLAuj9AMoNZ6qykQP8cB8OPTlzIZc0oyWGAE/1LoTrndPAvoPA==
"@sentry/integrations@6.19.7":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/integrations/-/integrations-6.19.7.tgz#e6e126b692077c8731644224c754012bed65b425"
integrity sha512-yNeeFyuygJaV7Mdc5qWuDa13xVj5mVdECaaw2Xs4pfeHaXmRfRzZY17N8ypWFegKWxKBHynyQRMD10W5pBwJvA==
dependencies:
"@sentry/types" "6.18.2"
"@sentry/utils" "6.18.2"
"@sentry/types" "6.19.7"
"@sentry/utils" "6.19.7"
localforage "^1.8.1"
tslib "^1.9.3"

"@sentry/[email protected]":
version "6.18.2"
resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-6.18.2.tgz#581c2fc030b9c89f1fcdc3e4855b91ce6c95db56"
integrity sha512-n7KYuo34W2LxE+3dnZ47of7XHuORINCnXq66XH72eoj67tf0XeWbIhEJrYGmoLRyRfoCYYrBLWiDl/uTjLzrzQ==
dependencies:
"@sentry/hub" "6.18.2"
"@sentry/types" "6.18.2"
tslib "^1.9.3"

"@sentry/[email protected]":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-6.19.7.tgz#b3ee46d6abef9ef3dd4837ebcb6bdfd01b9aa7b4"
Expand All @@ -1708,36 +1679,22 @@
"@sentry/types" "6.19.7"
tslib "^1.9.3"

"@sentry/nextjs@^6.18.2":
version "6.18.2"
resolved "https://registry.yarnpkg.com/@sentry/nextjs/-/nextjs-6.18.2.tgz#573adfe524163bd15d73ef3bd9f1c19ddc21864a"
integrity sha512-/H+nnIalHRw2/BWmrjJ7145AwcPeFo03e2LuYGGuNhUmHKsioiZliz7dd7C+7epLS7cajkjmcCNqtW9jvI82hw==
dependencies:
"@sentry/core" "6.18.2"
"@sentry/hub" "6.18.2"
"@sentry/integrations" "6.18.2"
"@sentry/node" "6.18.2"
"@sentry/react" "6.18.2"
"@sentry/tracing" "6.18.2"
"@sentry/utils" "6.18.2"
"@sentry/webpack-plugin" "1.18.8"
tslib "^1.9.3"

"@sentry/[email protected]":
version "6.18.2"
resolved "https://registry.yarnpkg.com/@sentry/node/-/node-6.18.2.tgz#0d3a294ad89434b108f79da5c4d9fcde4f251993"
integrity sha512-1S+44c09n3KVpCYjwOfnA9jKvnpPegpQWM81Nu5J6ToGx+ZiddMq6B9GRXUnFfZ7Z6fJHZzFtySasQC7KqkQoA==
"@sentry/nextjs@^6.19.6":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/nextjs/-/nextjs-6.19.7.tgz#2c40692d89a99ec1382189f11702b1498c91fb77"
integrity sha512-029gpqhR6gHF7zfE9oxFOf3Zm68CShDu8/6azC8mwfIfJtyLC9dqztJJi48j0Uxs+sR1TEkN5Dw3wZbfWtFd8g==
dependencies:
"@sentry/core" "6.18.2"
"@sentry/hub" "6.18.2"
"@sentry/types" "6.18.2"
"@sentry/utils" "6.18.2"
cookie "^0.4.1"
https-proxy-agent "^5.0.0"
lru_map "^0.3.3"
"@sentry/core" "6.19.7"
"@sentry/hub" "6.19.7"
"@sentry/integrations" "6.19.7"
"@sentry/node" "6.19.7"
"@sentry/react" "6.19.7"
"@sentry/tracing" "6.19.7"
"@sentry/utils" "6.19.7"
"@sentry/webpack-plugin" "1.18.8"
tslib "^1.9.3"

"@sentry/node@^6.16.1":
"@sentry/node@6.19.7", "@sentry/node@^6.16.1":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/node/-/node-6.19.7.tgz#32963b36b48daebbd559e6f13b1deb2415448592"
integrity sha512-gtmRC4dAXKODMpHXKfrkfvyBL3cI8y64vEi3fDD046uqYcrWdgoQsffuBbxMAizc6Ez1ia+f0Flue6p15Qaltg==
Expand All @@ -1751,47 +1708,34 @@
lru_map "^0.3.3"
tslib "^1.9.3"

"@sentry/react@6.18.2", "@sentry/react@^6.18.2":
version "6.18.2"
resolved "https://registry.yarnpkg.com/@sentry/react/-/react-6.18.2.tgz#9ba69862c1cf0bd9a47870c8836358db7200c421"
integrity sha512-TgCgoiduaPLq/YDh1urF+ZckIGiIzhMFPHs9tlMaqFkEwPOOENJTiPiwTs56x39/2B0tn3XNfY8Un8kG5hsINQ==
"@sentry/react@6.19.7", "@sentry/react@^6.19.6":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/react/-/react-6.19.7.tgz#58cc2d6da20f7d3b0df40638dfbbbc86c9c85caf"
integrity sha512-VzJeBg/v41jfxUYPkH2WYrKjWc4YiMLzDX0f4Zf6WkJ4v3IlDDSkX6DfmWekjTKBho6wiMkSNy2hJ1dHfGZ9jA==
dependencies:
"@sentry/browser" "6.18.2"
"@sentry/minimal" "6.18.2"
"@sentry/types" "6.18.2"
"@sentry/utils" "6.18.2"
"@sentry/browser" "6.19.7"
"@sentry/minimal" "6.19.7"
"@sentry/types" "6.19.7"
"@sentry/utils" "6.19.7"
hoist-non-react-statics "^3.3.2"
tslib "^1.9.3"

"@sentry/tracing@6.18.2":
version "6.18.2"
resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-6.18.2.tgz#163ecf0042aeb300c12952a91784fda6630085ef"
integrity sha512-hg6NLqrqJ5sUPTyWEQ2RqdnhQVnyLtx8II0IyWxQLDWD8UCe3Mu6G7mroDtakPWcP+lWz6OnKfMEfuhMcxR8fw==
"@sentry/tracing@6.19.7":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-6.19.7.tgz#54bb99ed5705931cd33caf71da347af769f02a4c"
integrity sha512-ol4TupNnv9Zd+bZei7B6Ygnr9N3Gp1PUrNI761QSlHtPC25xXC5ssSD3GMhBgyQrcvpuRcCFHVNNM97tN5cZiA==
dependencies:
"@sentry/hub" "6.18.2"
"@sentry/minimal" "6.18.2"
"@sentry/types" "6.18.2"
"@sentry/utils" "6.18.2"
"@sentry/hub" "6.19.7"
"@sentry/minimal" "6.19.7"
"@sentry/types" "6.19.7"
"@sentry/utils" "6.19.7"
tslib "^1.9.3"

"@sentry/[email protected]":
version "6.18.2"
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-6.18.2.tgz#f528fec8b75c19d5a6976004e71703184c6cf7be"
integrity sha512-WzpJf/Q5aORTzrSwer/As1NlO90dBAQpaHV2ikDDKqOyMWEgjKb5/4gh59p9gH8JMMnLetP1AvQel0fOj5UnUw==

"@sentry/[email protected]":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-6.19.7.tgz#c6b337912e588083fc2896eb012526cf7cfec7c7"
integrity sha512-jH84pDYE+hHIbVnab3Hr+ZXr1v8QABfhx39KknxqKWr2l0oEItzepV0URvbEhB446lk/S/59230dlUUIBGsXbg==

"@sentry/[email protected]":
version "6.18.2"
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-6.18.2.tgz#c572a3ff49113e7dc4c97db1a18d117f199b9fff"
integrity sha512-EC619jesknyu4xpwud5WC/5odYLz6JUy7OSFy5405PpdGeh/m8XUvuJAx4zDx0Iz/Mlk0S1Md+ZcQwqkv39dkw==
dependencies:
"@sentry/types" "6.18.2"
tslib "^1.9.3"

"@sentry/[email protected]":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-6.19.7.tgz#6edd739f8185fd71afe49cbe351c1bbf5e7b7c79"
Expand Down

0 comments on commit 379b3ca

Please sign in to comment.