diff --git a/web/package-lock.json b/web/package-lock.json index 95b34c9e5..396d31452 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -3186,6 +3186,63 @@ "tslib": "^1.11.2" } }, + "@sentry/browser": { + "version": "5.17.0", + "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-5.17.0.tgz", + "integrity": "sha512-++pXpCHtdek1cRUwVeLvlxUJ2w1s+eiC9qN1N+7+HdAjHpBz2/tA1sKBCqwwVQZ490Cf2GLll9Ao7fuPPmveRQ==", + "requires": { + "@sentry/core": "5.17.0", + "@sentry/types": "5.17.0", + "@sentry/utils": "5.17.0", + "tslib": "^1.9.3" + } + }, + "@sentry/core": { + "version": "5.17.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-5.17.0.tgz", + "integrity": "sha512-Kfx4rGKDC7V1YJjTGJXyl12VVHxM8Cjpu61YOyF8kXoXXg9u06C3n0G1dmfzLQERKXasUVMtXRBdKx/OjYpl1g==", + "requires": { + "@sentry/hub": "5.17.0", + "@sentry/minimal": "5.17.0", + "@sentry/types": "5.17.0", + "@sentry/utils": "5.17.0", + "tslib": "^1.9.3" + } + }, + "@sentry/hub": { + "version": "5.17.0", + "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-5.17.0.tgz", + "integrity": "sha512-lyUbEmshwaMYdAzy4iwgizgvKODVVloB2trnefpq90AuWCdvzcxMLIGULx1ou+KohccqdNorYICKWeuRscKq5A==", + "requires": { + "@sentry/types": "5.17.0", + "@sentry/utils": "5.17.0", + "tslib": "^1.9.3" + } + }, + "@sentry/minimal": { + "version": "5.17.0", + "resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-5.17.0.tgz", + "integrity": "sha512-v8xfkySXKrliZO6er6evlVe/ViUcqN0O8BhGyauK28Mf+KnKEOs5W6oWbt4qCDIttw9ynKIYyRrkAl/9oUR76A==", + "requires": { + "@sentry/hub": "5.17.0", + "@sentry/types": "5.17.0", + "tslib": "^1.9.3" + } + }, + "@sentry/types": { + "version": "5.17.0", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.17.0.tgz", + "integrity": "sha512-1z8EXzvg8GcsBNnSXgB5/G7mz2PwmMt9mjOrVG1jhtSGH1c7WvB32F5boqoMcjIJmy5MrBGaaXwrF/RRJrwUQg==" + }, + "@sentry/utils": { + "version": "5.17.0", + "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-5.17.0.tgz", + "integrity": "sha512-qn8WgZcSkV/rx0ezp9q/xFjP7aMaYZO1/JYLXV4o6pYrQ9tvMmmwAZT39FpJunhhbkR36WNEuRB9C2K250cb/A==", + "requires": { + "@sentry/types": "5.17.0", + "tslib": "^1.9.3" + } + }, "@sindresorhus/is": { "version": "0.14.0", "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", diff --git a/web/package.json b/web/package.json index c891ef98e..09802c3da 100644 --- a/web/package.json +++ b/web/package.json @@ -18,6 +18,7 @@ "@emotion/core": "^10.0.28", "@emotion/styled": "^10.0.27", "@loadable/component": "^5.10.2", + "@sentry/browser": "^5.17.0", "axios": "^0.19.0", "emotion-theming": "^10.0.27", "env-cmd": "^10.0.1", diff --git a/web/src/pages/app.js b/web/src/pages/app.js index 0a0b26e5f..2ad03974d 100644 --- a/web/src/pages/app.js +++ b/web/src/pages/app.js @@ -12,10 +12,12 @@ import ChallengeDetailsPage from "./ChallengeDetailsPage"; import SiteWrapper from "../components/SiteWrapper"; import TeamDetailsPage from "./TeamDetailsPage"; import SettingsPage from "./SettingsPage"; +import * as Sentry from '@sentry/browser'; const ProtectedRoute = loadable(() => import("../components/ProtectedRoute")); import "tabler-react/dist/Tabler.css"; +Sentry.init({dsn: "https://8605d8e8fa21419d9a0e3f36a54df5cb@o406102.ingest.sentry.io/5272916"}); toast.configure(); const App = () => (