From 47d5d71eddcc6fc76565f8eafdc67afabce1a354 Mon Sep 17 00:00:00 2001 From: Lupanciuc Marc Date: Fri, 20 Dec 2024 20:31:20 +0200 Subject: [PATCH 01/11] feat:#674 - sentry implementation --- .env | 2 + .gitignore | 4 +- package-lock.json | 317 ++++++++++++++++++++++++++++-- package.json | 6 +- quasar.config.js | 2 +- src/boot/sentry.js | 15 ++ src/stores/__tests__/user.spec.js | 14 +- src/utils/waitUntil.js | 2 +- 8 files changed, 336 insertions(+), 26 deletions(-) create mode 100644 src/boot/sentry.js diff --git a/.env b/.env index 00810b7e..009f1d19 100644 --- a/.env +++ b/.env @@ -57,3 +57,5 @@ VITE_ESCROW_DEPLOYED_CONTRACT_ON_POLYGON_MAINET="0x9bf0e1fa0868997eEE5F62449F5Ea SERVICE_WORKER_FILE='custom-service-worker.js' LHCI_GITHUB_APP_TOKEN=B6ArZYEnDbHNlGFF:56686146:zUx9rDIA +SENTRY_AUTH_TOKEN=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 + diff --git a/.gitignore b/.gitignore index 40e34ac8..b2ca143f 100644 --- a/.gitignore +++ b/.gitignore @@ -47,4 +47,6 @@ package-lock.json src/web3/alternatives src/components/Admin/updatedTableEntry.vue -src/web3/#walletConnect.js# \ No newline at end of file +src/web3/#walletConnect.js# +# Sentry Config File +.sentryclirc diff --git a/package-lock.json b/package-lock.json index dca7b7b7..1a6963ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,8 @@ "dependencies": { "@originjs/vite-plugin-commonjs": "^1.0.3", "@quasar/extras": "^1.16.12", + "@sentry/cli": "^2.33.0", + "@sentry/vue": "^8.20.0", "@tanstack/query-persist-client-core": "^5.51.21", "@tanstack/query-sync-storage-persister": "^5.51.21", "@tanstack/vue-query": "^5.51.21", @@ -6257,14 +6259,236 @@ "node": ">= 8.0.0" } }, + "node_modules/@sentry-internal/browser-utils": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-8.20.0.tgz", + "integrity": "sha512-GGYNiELnT4ByidHyS4/M8UF8Oxagm5R13QyTncQGq8nZcQhcFZ9mdxLnf1/R4+j44Fph2Cgzafe8jGP/AMA9zw==", + "dependencies": { + "@sentry/core": "8.20.0", + "@sentry/types": "8.20.0", + "@sentry/utils": "8.20.0" + }, + "engines": { + "node": ">=14.18" + } + }, + "node_modules/@sentry-internal/feedback": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-8.20.0.tgz", + "integrity": "sha512-mFvAoVpVShkDB2AgEr/dE96NSTPKI/lGMBznZMg7ZEcwZhLfH7HvLYCadIskRfzqFTLOUpbm9ciIO4SyR/4bDA==", + "dependencies": { + "@sentry/core": "8.20.0", + "@sentry/types": "8.20.0", + "@sentry/utils": "8.20.0" + }, + "engines": { + "node": ">=14.18" + } + }, + "node_modules/@sentry-internal/replay": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/replay/-/replay-8.20.0.tgz", + "integrity": "sha512-sCiI7SOAHq5XsxkixtoMofeSyKd/hVgDV+4145f6nN9m7nLzig4PBQwh2SgK2piJ2mfaXfqcdzA1pShPYldaJA==", + "dependencies": { + "@sentry-internal/browser-utils": "8.20.0", + "@sentry/core": "8.20.0", + "@sentry/types": "8.20.0", + "@sentry/utils": "8.20.0" + }, + "engines": { + "node": ">=14.18" + } + }, + "node_modules/@sentry-internal/replay-canvas": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-8.20.0.tgz", + "integrity": "sha512-LXV/pMH9KMw6CtImenMsiBkYIFIc97pDJ/rC7mVImKIROQ45fxGp/JBXM4Id0GENyA2+SySMWVQCAAapSfHZTw==", + "dependencies": { + "@sentry-internal/replay": "8.20.0", + "@sentry/core": "8.20.0", + "@sentry/types": "8.20.0", + "@sentry/utils": "8.20.0" + }, + "engines": { + "node": ">=14.18" + } + }, + "node_modules/@sentry/browser": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-8.20.0.tgz", + "integrity": "sha512-JDZbCreY44/fHYN28QzsAwEHXa2rc1hzM6GE4RSlXCdAhNfrjVxyYDxhw/50pVEHZg1WXxf7ZmERjocV5VJHsw==", + "dependencies": { + "@sentry-internal/browser-utils": "8.20.0", + "@sentry-internal/feedback": "8.20.0", + "@sentry-internal/replay": "8.20.0", + "@sentry-internal/replay-canvas": "8.20.0", + "@sentry/core": "8.20.0", + "@sentry/types": "8.20.0", + "@sentry/utils": "8.20.0" + }, + "engines": { + "node": ">=14.18" + } + }, + "node_modules/@sentry/cli": { + "version": "2.33.0", + "resolved": "https://registry.npmjs.org/@sentry/cli/-/cli-2.33.0.tgz", + "integrity": "sha512-9MOzQy1UunVBhPOfEuO0JH2ofWAMmZVavTTR/Bo2CkJwI1qjyVF0UKLTXE3l4ujiJnFufOoBsVyKmYWXFerbCw==", + "hasInstallScript": true, + "dependencies": { + "https-proxy-agent": "^5.0.0", + "node-fetch": "^2.6.7", + "progress": "^2.0.3", + "proxy-from-env": "^1.1.0", + "which": "^2.0.2" + }, + "bin": { + "sentry-cli": "bin/sentry-cli" + }, + "engines": { + "node": ">= 10" + }, + "optionalDependencies": { + "@sentry/cli-darwin": "2.33.0", + "@sentry/cli-linux-arm": "2.33.0", + "@sentry/cli-linux-arm64": "2.33.0", + "@sentry/cli-linux-i686": "2.33.0", + "@sentry/cli-linux-x64": "2.33.0", + "@sentry/cli-win32-i686": "2.33.0", + "@sentry/cli-win32-x64": "2.33.0" + } + }, + "node_modules/@sentry/cli-darwin": { + "version": "2.33.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-darwin/-/cli-darwin-2.33.0.tgz", + "integrity": "sha512-LQFvD7uCOQ2P/vYru7IBKqJDHwJ9Rr2vqqkdjbxe2YCQS/N3NPXvi3eVM9hDJ284oyV/BMZ5lrmVTuIicf/hhw==", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/cli-linux-arm": { + "version": "2.33.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-arm/-/cli-linux-arm-2.33.0.tgz", + "integrity": "sha512-gY1bFE7wjDJc7WiNq1AS0WrILqLLJUw6Ou4pFQS45KjaH3/XJ1eohHhGJNy/UBHJ/Gq32b/BA9vsnWTXClZJ7g==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux", + "freebsd" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/cli-linux-arm64": { + "version": "2.33.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-arm64/-/cli-linux-arm64-2.33.0.tgz", + "integrity": "sha512-mR2ZhqpU8RBVGLF5Ji19iOmVznk1B7Bzg5VhA8bVPuKsQmFN/3SyqE87IPMhwKoAsSRXyctwmbAkKs4240fxGA==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux", + "freebsd" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/cli-linux-i686": { + "version": "2.33.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-i686/-/cli-linux-i686-2.33.0.tgz", + "integrity": "sha512-XPIy0XpqgAposHtWsy58qsX85QnZ8q0ktBuT4skrsCrLMzfhoQg4Ua+YbUr3RvE814Rt8Hzowx2ar2Rl3pyCyw==", + "cpu": [ + "x86", + "ia32" + ], + "optional": true, + "os": [ + "linux", + "freebsd" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/cli-linux-x64": { + "version": "2.33.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-x64/-/cli-linux-x64-2.33.0.tgz", + "integrity": "sha512-qe1DdCUv4tmqS03s8RtCkEX9vCW2G+NgOxX6jZ5jN/sKDwjUlquljqo7JHUGSupkoXmymnNPm5By3rNr6VyNHg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux", + "freebsd" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/cli-win32-i686": { + "version": "2.33.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-win32-i686/-/cli-win32-i686-2.33.0.tgz", + "integrity": "sha512-VEXWtJ69C3b+kuSmXQJRwdQ0ypPGH88hpqyQuosbAOIqh/sv4g9B/u1ETHZc+whLdFDpPcTLVMbLDbXTGug0Yg==", + "cpu": [ + "x86", + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/cli-win32-x64": { + "version": "2.33.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-win32-x64/-/cli-win32-x64-2.33.0.tgz", + "integrity": "sha512-GIUKysZ1xbSklY9h1aVaLMSYLsnMSd+JuwQLR+0wKw2wJC4O5kNCPFSGikhiOZM/kvh3GO1WnXNyazFp8nLAzw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/cli/node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "node_modules/@sentry/core": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-8.20.0.tgz", + "integrity": "sha512-R81snuw+67VT4aCxr6ShST/s0Y6FlwN2YczhDwaGyzumn5rlvA6A4JtQDeExduNoDDyv4T3LrmW8wlYZn3CJJw==", + "dependencies": { + "@sentry/types": "8.20.0", + "@sentry/utils": "8.20.0" + }, + "engines": { + "node": ">=14.18" + } + }, + "node_modules/@sentry/hub": { "version": "6.19.7", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-6.19.7.tgz", - "integrity": "sha512-tOfZ/umqB2AcHPGbIrsFLcvApdTm9ggpi/kQZFkej7kMphjT+SGBiQfYtjyg9jcRW+ilAR4JXC9BGKsdEQ+8Vw==", + "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-6.19.7.tgz", + "integrity": "sha512-y3OtbYFAqKHCWezF0EGGr5lcyI2KbaXW2Ik7Xp8Mu9TxbSTuwTe4rTntwg8ngPjUQU3SUHzgjqVB8qjiGqFXCA==", "dev": true, "dependencies": { - "@sentry/hub": "6.19.7", - "@sentry/minimal": "6.19.7", "@sentry/types": "6.19.7", "@sentry/utils": "6.19.7", "tslib": "^1.9.3" @@ -6273,14 +6497,22 @@ "node": ">=6" } }, - "node_modules/@sentry/hub": { + "node_modules/@sentry/hub/node_modules/@sentry/types": { "version": "6.19.7", - "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-6.19.7.tgz", - "integrity": "sha512-y3OtbYFAqKHCWezF0EGGr5lcyI2KbaXW2Ik7Xp8Mu9TxbSTuwTe4rTntwg8ngPjUQU3SUHzgjqVB8qjiGqFXCA==", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.7.tgz", + "integrity": "sha512-jH84pDYE+hHIbVnab3Hr+ZXr1v8QABfhx39KknxqKWr2l0oEItzepV0URvbEhB446lk/S/59230dlUUIBGsXbg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/@sentry/hub/node_modules/@sentry/utils": { + "version": "6.19.7", + "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-6.19.7.tgz", + "integrity": "sha512-z95ECmE3i9pbWoXQrD/7PgkBAzJYR+iXtPuTkpBjDKs86O3mT+PXOT3BAn79w2wkn7/i3vOGD2xVr1uiMl26dA==", "dev": true, "dependencies": { "@sentry/types": "6.19.7", - "@sentry/utils": "6.19.7", "tslib": "^1.9.3" }, "engines": { @@ -6320,16 +6552,23 @@ "node": ">=6" } }, - "node_modules/@sentry/node/node_modules/cookie": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", - "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", + "node_modules/@sentry/node/node_modules/@sentry/core": { + "version": "6.19.7", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-6.19.7.tgz", + "integrity": "sha512-tOfZ/umqB2AcHPGbIrsFLcvApdTm9ggpi/kQZFkej7kMphjT+SGBiQfYtjyg9jcRW+ilAR4JXC9BGKsdEQ+8Vw==", "dev": true, + "dependencies": { + "@sentry/hub": "6.19.7", + "@sentry/minimal": "6.19.7", + "@sentry/types": "6.19.7", + "@sentry/utils": "6.19.7", + "tslib": "^1.9.3" + }, "engines": { - "node": ">= 0.6" + "node": ">=6" } }, - "node_modules/@sentry/types": { + "node_modules/@sentry/node/node_modules/@sentry/types": { "version": "6.19.7", "resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.7.tgz", "integrity": "sha512-jH84pDYE+hHIbVnab3Hr+ZXr1v8QABfhx39KknxqKWr2l0oEItzepV0URvbEhB446lk/S/59230dlUUIBGsXbg==", @@ -6338,7 +6577,7 @@ "node": ">=6" } }, - "node_modules/@sentry/utils": { + "node_modules/@sentry/node/node_modules/@sentry/utils": { "version": "6.19.7", "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-6.19.7.tgz", "integrity": "sha512-z95ECmE3i9pbWoXQrD/7PgkBAzJYR+iXtPuTkpBjDKs86O3mT+PXOT3BAn79w2wkn7/i3vOGD2xVr1uiMl26dA==", @@ -6351,6 +6590,51 @@ "node": ">=6" } }, + "node_modules/@sentry/node/node_modules/cookie": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/@sentry/types": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-8.20.0.tgz", + "integrity": "sha512-6IP278KojOpiAA7vrd1hjhUyn26cl0n0nGsShzic5ztCVs92sTeVRnh7MTB9irDVtAbOEyt/YH6go3h+Jia1pA==", + "engines": { + "node": ">=14.18" + } + }, + "node_modules/@sentry/utils": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-8.20.0.tgz", + "integrity": "sha512-+1I5H8dojURiEUGPliDwheQk8dhjp8uV1sMccR/W/zjFrt4wZyPs+Ttp/V7gzm9LDJoNek9tmELert/jQqWTgg==", + "dependencies": { + "@sentry/types": "8.20.0" + }, + "engines": { + "node": ">=14.18" + } + }, + "node_modules/@sentry/vue": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@sentry/vue/-/vue-8.20.0.tgz", + "integrity": "sha512-DFEJzvlx/eT7T6Ted9XYPAWZKNC9jPwUC+4b6oA69s44i/tYEFR9Oj0177YmAo69B7EpCIBQVntyS5Bbx0HtdQ==", + "dependencies": { + "@sentry/browser": "8.20.0", + "@sentry/core": "8.20.0", + "@sentry/types": "8.20.0", + "@sentry/utils": "8.20.0" + }, + "engines": { + "node": ">=14.18" + }, + "peerDependencies": { + "vue": "2.x || 3.x" + } + }, "node_modules/@sideway/address": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz", @@ -8024,7 +8308,6 @@ "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, "dependencies": { "debug": "4" }, @@ -13183,7 +13466,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, "dependencies": { "agent-base": "6", "debug": "4" @@ -17767,7 +18049,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true, "engines": { "node": ">=0.4.0" } diff --git a/package.json b/package.json index 950e7664..ff6410e1 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,9 @@ ], "*.{json,js,ts,jsx,tsx,html}": [ "npm run format" - ] + ], + "cy:test": "start-server-and-test dev http-get://localhost:9200 cy:run", + "sentry:sourcemaps": "sentry-cli sourcemaps inject --org testing-se --project javascript-vue dist && sentry-cli sourcemaps upload --org testing-se --project javascript-vue dist" }, "dependencies": { "@originjs/vite-plugin-commonjs": "^1.0.3", @@ -42,6 +44,8 @@ "@tanstack/query-sync-storage-persister": "^5.51.21", "@tanstack/vue-query": "^5.51.21", "@tanstack/vue-query-devtools": "^5.51.21", + "@sentry/cli": "^2.33.0", + "@sentry/vue": "^8.20.0", "@web3modal/ethers5": "^4.2.3", "big-integer": "^1.6.52", "dotenv": "^16.3.1", diff --git a/quasar.config.js b/quasar.config.js index 8b1d877c..537178b5 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -20,7 +20,7 @@ module.exports = configure(function (ctx) { }, // App boot file (/src/boot) - boot: ['tanstack-query'], + boot: ['tanstack-query', 'sentry'], // CSS to include css: ['app.css'], diff --git a/src/boot/sentry.js b/src/boot/sentry.js new file mode 100644 index 00000000..067f1005 --- /dev/null +++ b/src/boot/sentry.js @@ -0,0 +1,15 @@ +import * as Sentry from '@sentry/vue' + +Sentry.init({ + dsn: 'https://fbf6f17dc1de5d78955f7e69a6a16d76@o4507662781382656.ingest.us.sentry.io/4507662784069632', + integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()], + // Performance Monitoring + tracesSampleRate: 1.0, + // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled + tracePropagationTargets: ['localhost', /^https:\/\/yourserver\.io\/api/], + // Session Replay + // 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. + replaysSessionSampleRate: 0.1, + // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur. + replaysOnErrorSampleRate: 1.0 +}) diff --git a/src/stores/__tests__/user.spec.js b/src/stores/__tests__/user.spec.js index 4d454e8d..adacc598 100644 --- a/src/stores/__tests__/user.spec.js +++ b/src/stores/__tests__/user.spec.js @@ -189,7 +189,7 @@ describe('Users Store', () => { name: 'Unit Tester', password: import.meta.env.VITE_TEST_PASSWORD } - + console.log(userObj) // Check the user exit try { await userStore.emailSignIn(userObj).then(async () => { @@ -258,10 +258,16 @@ describe('Users Store', () => { expect(userStore.isAuthenticated).toEqual(true) expect(userStore.isEditorOrAbove).toEqual(true) user = auth.currentUser - await deleteUser(user) - + console.log(adminObj) + try { + await deleteUser(user) + console.log('user removed') + console.log('current user:', auth.currentUser) + } catch (e) { + console.error('Failed to delete user:', e) + } expect(auth.currentUser).toEqual(null) - }) + }, 30000) // describe('UnAuthenticated User', () => { // beforeEach(async () => { // const userStore = useUserStore() diff --git a/src/utils/waitUntil.js b/src/utils/waitUntil.js index ac69828c..e76dba4e 100644 --- a/src/utils/waitUntil.js +++ b/src/utils/waitUntil.js @@ -1,4 +1,4 @@ -export const waitUntil = (callback, timeout = 15000) => { +export const waitUntil = (callback, timeout = 30000) => { return new Promise((resolve, reject) => { setTimeout(() => { if (!callback()) { From 6f6e2fe7531cc159d3039065eb78f3c243636f55 Mon Sep 17 00:00:00 2001 From: Lupanciuc Marc Date: Fri, 20 Dec 2024 20:35:07 +0200 Subject: [PATCH 02/11] feat:#674 - fix --- src/stores/__tests__/user.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/__tests__/user.spec.js b/src/stores/__tests__/user.spec.js index adacc598..ff684a5b 100644 --- a/src/stores/__tests__/user.spec.js +++ b/src/stores/__tests__/user.spec.js @@ -189,7 +189,7 @@ describe('Users Store', () => { name: 'Unit Tester', password: import.meta.env.VITE_TEST_PASSWORD } - console.log(userObj) + // Check the user exit try { await userStore.emailSignIn(userObj).then(async () => { @@ -258,7 +258,7 @@ describe('Users Store', () => { expect(userStore.isAuthenticated).toEqual(true) expect(userStore.isEditorOrAbove).toEqual(true) user = auth.currentUser - console.log(adminObj) + try { await deleteUser(user) console.log('user removed') From 90a0c11b9412b188505ac46f6725f6070f92bc39 Mon Sep 17 00:00:00 2001 From: Marc <43423591+marclupanc@users.noreply.github.com> Date: Fri, 20 Dec 2024 20:36:56 +0200 Subject: [PATCH 03/11] Update deployment.yml --- .github/workflows/deployment.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index f0b7410e..df1a11f5 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -4,7 +4,6 @@ on: push: branches: - develop - - '*' branches-ignore: - main From 45c4e409a7c6c578d41d97c758a3365d71403a12 Mon Sep 17 00:00:00 2001 From: Lupanciuc Marc Date: Fri, 20 Dec 2024 20:40:31 +0200 Subject: [PATCH 04/11] feat:#674 - package.json --- package-lock.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package-lock.json b/package-lock.json index 1a6963ff..8ec2ea2e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6533,6 +6533,15 @@ "node": ">=6" } }, + "node_modules/@sentry/minimal/node_modules/@sentry/types": { + "version": "6.19.7", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.7.tgz", + "integrity": "sha512-jH84pDYE+hHIbVnab3Hr+ZXr1v8QABfhx39KknxqKWr2l0oEItzepV0URvbEhB446lk/S/59230dlUUIBGsXbg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/@sentry/node": { "version": "6.19.7", "resolved": "https://registry.npmjs.org/@sentry/node/-/node-6.19.7.tgz", From 5f8aeaae26dbcf0750e9b74fd26853b65d23e7e4 Mon Sep 17 00:00:00 2001 From: Lupanciuc Marc Date: Sat, 21 Dec 2024 14:29:10 +0200 Subject: [PATCH 05/11] feat:#674 - Sentry config update test dev env --- src/boot/sentry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/sentry.js b/src/boot/sentry.js index 067f1005..8f9e94b7 100644 --- a/src/boot/sentry.js +++ b/src/boot/sentry.js @@ -6,7 +6,7 @@ Sentry.init({ // Performance Monitoring tracesSampleRate: 1.0, // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled - tracePropagationTargets: ['localhost', /^https:\/\/yourserver\.io\/api/], + tracePropagationTargets: ['localhost', /^https:\/\/5e9b2f6c\.celebrity-fanalyzer\.pages\.dev/], // Session Replay // 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. replaysSessionSampleRate: 0.1, From 1fc886df0c0755832a977dd6a3666cfb54426b4c Mon Sep 17 00:00:00 2001 From: Lupanciuc Marc Date: Sat, 21 Dec 2024 14:32:17 +0200 Subject: [PATCH 06/11] feat:#674 - Sentry config update test dev env --- src/boot/sentry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/sentry.js b/src/boot/sentry.js index 8f9e94b7..8b501dcf 100644 --- a/src/boot/sentry.js +++ b/src/boot/sentry.js @@ -6,7 +6,7 @@ Sentry.init({ // Performance Monitoring tracesSampleRate: 1.0, // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled - tracePropagationTargets: ['localhost', /^https:\/\/5e9b2f6c\.celebrity-fanalyzer\.pages\.dev/], + tracePropagationTargets: ['localhost', /^https:\/\/feat-sentry\.celebrity-fanalyzer\.pages\.dev/], // Session Replay // 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. replaysSessionSampleRate: 0.1, From f93767244a5056973ac17a9cf058a3598f5b505d Mon Sep 17 00:00:00 2001 From: Lupanciuc Marc Date: Sat, 21 Dec 2024 14:38:46 +0200 Subject: [PATCH 07/11] feat:#674 - Sentry config update test dev env --- src/boot/sentry.js | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/src/boot/sentry.js b/src/boot/sentry.js index 8b501dcf..cf373d14 100644 --- a/src/boot/sentry.js +++ b/src/boot/sentry.js @@ -1,15 +1,22 @@ import * as Sentry from '@sentry/vue' -Sentry.init({ - dsn: 'https://fbf6f17dc1de5d78955f7e69a6a16d76@o4507662781382656.ingest.us.sentry.io/4507662784069632', - integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()], - // Performance Monitoring - tracesSampleRate: 1.0, - // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled - tracePropagationTargets: ['localhost', /^https:\/\/feat-sentry\.celebrity-fanalyzer\.pages\.dev/], - // Session Replay - // 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. - replaysSessionSampleRate: 0.1, - // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur. - replaysOnErrorSampleRate: 1.0 -}) +export default ({ app, router }) => { + Sentry.init({ + app, + dsn: 'https://fbf6f17dc1de5d78955f7e69a6a16d76@o4507662781382656.ingest.us.sentry.io/4507662784069632', + integrations: [ + Sentry.browserTracingIntegration({ + routingInstrumentation: Sentry.vueRouterInstrumentation(router) + }), + Sentry.replayIntegration() + ], + // Performance Monitoring + tracesSampleRate: 1.0, + tracePropagationTargets: ['localhost', /^https:\/\/feat-sentry\.celebrity-fanalyzer\.pages\.dev/], + // Session Replay + replaysSessionSampleRate: 0.1, + replaysOnErrorSampleRate: 1.0 + }) + + console.info('[Sentry] Initialized successfully') +} From 14a773072428393fc7c2d4ee7e5634899ed16239 Mon Sep 17 00:00:00 2001 From: Lupanciuc Marc Date: Sat, 21 Dec 2024 14:48:52 +0200 Subject: [PATCH 08/11] feat:#674 - Sentry config update test dev env --- package-lock.json | 67 ++++++++++++++++++++++++++++++++++++++++++++++ package.json | 5 ++-- src/boot/sentry.js | 36 +++++++++++-------------- 3 files changed, 86 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8ec2ea2e..9803709f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "@originjs/vite-plugin-commonjs": "^1.0.3", "@quasar/extras": "^1.16.12", "@sentry/cli": "^2.33.0", + "@sentry/integrations": "^7.114.0", "@sentry/vue": "^8.20.0", "@tanstack/query-persist-client-core": "^5.51.21", "@tanstack/query-sync-storage-persister": "^5.51.21", @@ -6519,6 +6520,51 @@ "node": ">=6" } }, + "node_modules/@sentry/integrations": { + "version": "7.114.0", + "resolved": "https://registry.npmjs.org/@sentry/integrations/-/integrations-7.114.0.tgz", + "integrity": "sha512-BJIBWXGKeIH0ifd7goxOS29fBA8BkEgVVCahs6xIOXBjX1IRS6PmX0zYx/GP23nQTfhJiubv2XPzoYOlZZmDxg==", + "dependencies": { + "@sentry/core": "7.114.0", + "@sentry/types": "7.114.0", + "@sentry/utils": "7.114.0", + "localforage": "^1.8.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@sentry/integrations/node_modules/@sentry/core": { + "version": "7.114.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.114.0.tgz", + "integrity": "sha512-YnanVlmulkjgZiVZ9BfY9k6I082n+C+LbZo52MTvx3FY6RE5iyiPMpaOh67oXEZRWcYQEGm+bKruRxLVP6RlbA==", + "dependencies": { + "@sentry/types": "7.114.0", + "@sentry/utils": "7.114.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@sentry/integrations/node_modules/@sentry/types": { + "version": "7.114.0", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.114.0.tgz", + "integrity": "sha512-tsqkkyL3eJtptmPtT0m9W/bPLkU7ILY7nvwpi1hahA5jrM7ppoU0IMaQWAgTD+U3rzFH40IdXNBFb8Gnqcva4w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@sentry/integrations/node_modules/@sentry/utils": { + "version": "7.114.0", + "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.114.0.tgz", + "integrity": "sha512-319N90McVpupQ6vws4+tfCy/03AdtsU0MurIE4+W5cubHME08HtiEWlfacvAxX+yuKFhvdsO4K4BB/dj54ideg==", + "dependencies": { + "@sentry/types": "7.114.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/@sentry/minimal": { "version": "6.19.7", "resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-6.19.7.tgz", @@ -13562,6 +13608,11 @@ "integrity": "sha512-W7+sO6/yhxy83L0G7xR8YAc5Z5QFtYEXXRV6EaE8tuYBZJnA3gVgp3q7X7muhLZVodeb9UfvjSbwt9VJwjIYAg==", "dev": true }, + "node_modules/immediate": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", + "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==" + }, "node_modules/immutable": { "version": "4.3.6", "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.6.tgz", @@ -15068,6 +15119,14 @@ "node": ">= 0.8.0" } }, + "node_modules/lie": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lie/-/lie-3.1.1.tgz", + "integrity": "sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==", + "dependencies": { + "immediate": "~3.0.5" + } + }, "node_modules/lighthouse": { "version": "12.1.0", "resolved": "https://registry.npmjs.org/lighthouse/-/lighthouse-12.1.0.tgz", @@ -15928,6 +15987,14 @@ "url": "https://github.com/sponsors/antfu" } }, + "node_modules/localforage": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/localforage/-/localforage-1.10.0.tgz", + "integrity": "sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==", + "dependencies": { + "lie": "3.1.1" + } + }, "node_modules/locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", diff --git a/package.json b/package.json index ff6410e1..6562a3f2 100644 --- a/package.json +++ b/package.json @@ -40,12 +40,13 @@ "dependencies": { "@originjs/vite-plugin-commonjs": "^1.0.3", "@quasar/extras": "^1.16.12", + "@sentry/cli": "^2.33.0", + "@sentry/integrations": "^7.114.0", + "@sentry/vue": "^8.20.0", "@tanstack/query-persist-client-core": "^5.51.21", "@tanstack/query-sync-storage-persister": "^5.51.21", "@tanstack/vue-query": "^5.51.21", "@tanstack/vue-query-devtools": "^5.51.21", - "@sentry/cli": "^2.33.0", - "@sentry/vue": "^8.20.0", "@web3modal/ethers5": "^4.2.3", "big-integer": "^1.6.52", "dotenv": "^16.3.1", diff --git a/src/boot/sentry.js b/src/boot/sentry.js index cf373d14..8270669b 100644 --- a/src/boot/sentry.js +++ b/src/boot/sentry.js @@ -1,22 +1,18 @@ +import Vue from 'vue' import * as Sentry from '@sentry/vue' +import * as Integrations from '@sentry/integrations' -export default ({ app, router }) => { - Sentry.init({ - app, - dsn: 'https://fbf6f17dc1de5d78955f7e69a6a16d76@o4507662781382656.ingest.us.sentry.io/4507662784069632', - integrations: [ - Sentry.browserTracingIntegration({ - routingInstrumentation: Sentry.vueRouterInstrumentation(router) - }), - Sentry.replayIntegration() - ], - // Performance Monitoring - tracesSampleRate: 1.0, - tracePropagationTargets: ['localhost', /^https:\/\/feat-sentry\.celebrity-fanalyzer\.pages\.dev/], - // Session Replay - replaysSessionSampleRate: 0.1, - replaysOnErrorSampleRate: 1.0 - }) - - console.info('[Sentry] Initialized successfully') -} +Sentry.init({ + dsn: 'https://fbf6f17dc1de5d78955f7e69a6a16d76@o4507662781382656.ingest.us.sentry.io/4507662784069632', + integrations: [new Integrations.Vue({ Vue, attachProps: true }), Sentry.browserTracingIntegration(), Sentry.replayIntegration()], + // Performance Monitoring + tracesSampleRate: 1.0, + // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled + tracePropagationTargets: ['localhost', /^https:\/\/feat-sentry\.celebrity-fanalyzer\.pages\.dev/], + // Session Replay + // 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. + replaysSessionSampleRate: 0.1, + // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur. + replaysOnErrorSampleRate: 1.0, + ignoreErrors: ['ResizeObserver loop limit exceeded'] +}) From 404aa846e76f22b598cbebe786a6d8316eed1e6f Mon Sep 17 00:00:00 2001 From: Lupanciuc Marc Date: Sat, 21 Dec 2024 14:59:06 +0200 Subject: [PATCH 09/11] feat:#674 - Sentry config update test dev env --- src/boot/sentry.js | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/boot/sentry.js b/src/boot/sentry.js index 8270669b..98137d89 100644 --- a/src/boot/sentry.js +++ b/src/boot/sentry.js @@ -1,18 +1,19 @@ -import Vue from 'vue' import * as Sentry from '@sentry/vue' -import * as Integrations from '@sentry/integrations' -Sentry.init({ - dsn: 'https://fbf6f17dc1de5d78955f7e69a6a16d76@o4507662781382656.ingest.us.sentry.io/4507662784069632', - integrations: [new Integrations.Vue({ Vue, attachProps: true }), Sentry.browserTracingIntegration(), Sentry.replayIntegration()], - // Performance Monitoring - tracesSampleRate: 1.0, - // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled - tracePropagationTargets: ['localhost', /^https:\/\/feat-sentry\.celebrity-fanalyzer\.pages\.dev/], - // Session Replay - // 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. - replaysSessionSampleRate: 0.1, - // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur. - replaysOnErrorSampleRate: 1.0, - ignoreErrors: ['ResizeObserver loop limit exceeded'] -}) +export default ({ app }) => { + Sentry.init({ + app, + dsn: 'https://fbf6f17dc1de5d78955f7e69a6a16d76@o4507662781382656.ingest.us.sentry.io/4507662784069632', + integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()], + // Performance Monitoring + tracesSampleRate: 1.0, + // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled + tracePropagationTargets: ['localhost', /^https:\/\/feat-sentry\.celebrity-fanalyzer\.pages\.dev/], + // Session Replay + // 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. + replaysSessionSampleRate: 0.1, + // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur. + replaysOnErrorSampleRate: 1.0, + ignoreErrors: ['ResizeObserver loop limit exceeded'] + }) +} From f1961d6da9e3c198a251ed88a5e511c2e5c590ef Mon Sep 17 00:00:00 2001 From: Lupanciuc Marc Date: Sat, 28 Dec 2024 17:34:05 +0200 Subject: [PATCH 10/11] feat:#674 - remove env variable, ignore env, update trace targets --- .env | 61 ---------------------------------------------- .gitignore | 1 + src/boot/sentry.js | 4 +-- 3 files changed, 3 insertions(+), 63 deletions(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index 009f1d19..00000000 --- a/.env +++ /dev/null @@ -1,61 +0,0 @@ -# DEVELOPMENT ENVIRONMENT VARIABLES CONFIG -VITE_FIREBASE_API_KEY=AIzaSyAW9Yx_gwj5KsJ8vaUySslUVdPQSejP750 -VITE_FIREBASE_AUTH_DOMAIN=celebrityfanalyzer-dev.firebaseapp.com -VITE_FIREBASE_PROJECT_ID=celebrityfanalyzer-dev -VITE_FIREBASE_STORAGE_BUCKET=celebrityfanalyzer-dev.appspot.com -VITE_FIREBASE_MESSAGING_SENDER_ID=628749901575 -VITE_FIREBASE_APP_ID=1:628749901575:web:14e4ffd327ffd9c1962fa2 -VITE_FIREBASE_MEASUREMENTID=G-73RG1E19X2 -VITE_FIREBASE_VAPID_KEY=BJztoe1O-9j8cWb2nGi4c8THAGWZ8Yp4bahzrbA9TlJFJV3ZgXbquCtk-nFahqXLn-gUMtYzfaP1u10damvf0SM -WAIT_ON_TIMEOUT=600000 -VITE_RELEASE_STAGE=development - -VITE_LS_SECRET_KEY=celebritycelebrity - -VITE_TEST_USER=test@test.com -VITE_TEST_PASSWORD=12345678 - -#BLOCKCHAIN -VITE_WALLET_CONNECT_PROJECT_ID='9dcf39cb8034882a971d5086066c7f17' - -VITE_CURRENT_NETWORK_NAME="MATIC" - -#sepolia -VITE_ALCHEMY_SEPOLIA_PROVIDER_URL="https://eth-sepolia.g.alchemy.com/v2/F_3kP4qK3m83Mzp0ZsxoBSNwXn9AWZfy" -VITE_ALCHEMY_SEPOLIA_SCAN_URL="https://sepolia.etherscan.io/tx/" -VITE_SEPOLIA_CURRENCY="ETH" -VITE_SEPOLIA_NETWORK_NAME="sepolia" -VITE_SEPOLIA_NETWORK_ID=11155111 - -#polygon testnet amoy -VITE_ALCHEMY_POLYGON_AMOY_PROVIDER_URL="https://polygon-amoy.g.alchemy.com/v2/00lwM-S0sm1EDraB9zsyZmQbLjzLtQKZ" -VITE_ALCHEMY_POLYGON_AMOY_SCAN_URL="https://www.oklink.com/amoy/tx/" -VITE_POLYGON_AMOY_NETWORK_NAME="Polygon Amoy (Alchemy)" -VITE_POLYGON_AMOY_CURRENCY="MATIC" -VITE_POLYGON_AMOY_NETWORK_ID=80002 -VITE_MATIC_RATE_API_LINK="https://api.coingecko.com/api/v3/simple/price?ids=matic-network&vs_currencies=USD" - -#polygon mainet -VITE_INFURA_POLYGON_MAINET_PROVIDER_URL="https://polygon-mainnet.g.alchemy.com/v2/Pwf_zLL-IbGvFhwTSbnreQUHi50dynvZ" -VITE_INFURA_POLYGON_MAINET_SCAN_URL="https://polygonscan.com/tx/" -VITE_INFURA_POLYGON_MAINET_NETWORK_NAME="Polygon Matic" -VITE_POLYGON_MAINET_CHAIN_ID=137 -VITE_POLYGON_MAINET_CURRENCY="MATIC" - -VITE_ADVERTISEMENT_CAMPAIGN_CONTRACT_ADDRESS="0x24935F040c768AFBc8E0BA3D95bDd0923d7e394A" -VITE_ADVERTISEMENT_COMPAIGN_CONTRACT_OWNER= "0xdb0f8aACC19a779b9020a693c35014DaF9cF3796" - -VITE_ADVERTISE_CLICK_RATE='0.001' -VITE_ADVERTISE_IMPRESSION_RATE='0.001' -VITE_ADVERTISE_VIEWS_RATE='0.001' - -VITE_LAYER8_PROXY=https://layer8proxy.net -#DEV ENV FOR STATS API -VITE_STATS_API_URL=https://stats-api-dev.up.railway.app/v1 - -VITE_ESCROW_DEPLOYED_CONTRACT_ON_POLYGON_MAINET="0x9bf0e1fa0868997eEE5F62449F5Ea2ad5db5E75E" -SERVICE_WORKER_FILE='custom-service-worker.js' - -LHCI_GITHUB_APP_TOKEN=B6ArZYEnDbHNlGFF:56686146:zUx9rDIA -SENTRY_AUTH_TOKEN=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 - diff --git a/.gitignore b/.gitignore index b2ca143f..766fffe8 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,4 @@ src/components/Admin/updatedTableEntry.vue src/web3/#walletConnect.js# # Sentry Config File .sentryclirc +!/.env diff --git a/src/boot/sentry.js b/src/boot/sentry.js index 98137d89..413ea34c 100644 --- a/src/boot/sentry.js +++ b/src/boot/sentry.js @@ -3,12 +3,12 @@ import * as Sentry from '@sentry/vue' export default ({ app }) => { Sentry.init({ app, - dsn: 'https://fbf6f17dc1de5d78955f7e69a6a16d76@o4507662781382656.ingest.us.sentry.io/4507662784069632', + dsn: import.meta.env.VITE_SENTRY_DSN, integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()], // Performance Monitoring tracesSampleRate: 1.0, // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled - tracePropagationTargets: ['localhost', /^https:\/\/feat-sentry\.celebrity-fanalyzer\.pages\.dev/], + tracePropagationTargets: [/^https:\/\/celebrityfanalyzer\.com/], // Session Replay // 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. replaysSessionSampleRate: 0.1, From e2a59ef7cf321fb0c7226474a40b4caf2e19915d Mon Sep 17 00:00:00 2001 From: Lupanciuc Marc Date: Sat, 28 Dec 2024 17:37:38 +0200 Subject: [PATCH 11/11] feat:#674 - gitignore env --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 766fffe8..fad250df 100644 --- a/.gitignore +++ b/.gitignore @@ -50,4 +50,4 @@ src/components/Admin/updatedTableEntry.vue src/web3/#walletConnect.js# # Sentry Config File .sentryclirc -!/.env +/.env