Skip to content

Commit

Permalink
NS-92 (#45)
Browse files Browse the repository at this point in the history
* NS-92 Setup Sentry

* Added missing dependecies

Co-authored-by: Bohdan Forostianyi <[email protected]>
  • Loading branch information
mbielech and Bohdan Forostianyi authored Nov 2, 2020
1 parent 4bec342 commit cba764d
Show file tree
Hide file tree
Showing 4 changed files with 156 additions and 272 deletions.
82 changes: 82 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.56",
"@material-ui/pickers": "3.2.10",
"@sentry/react": "^5.27.1",
"@sentry/tracing": "^5.27.1",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import { createStore } from "redux";
import * as Sentry from "@sentry/react";
import { Integrations } from "@sentry/tracing";
import App from "./app";
import "./index.css";
import * as serviceWorker from "./serviceWorker";
import { appReducer } from "./state/app-reducer";

const appStore = createStore(appReducer);

Sentry.init({
dsn: "https://[email protected]/5492940",
integrations: [new Integrations.BrowserTracing()],
tracesSampleRate: 1.0,
});

ReactDOM.render(
<React.StrictMode>
<Provider store={appStore}>
Expand Down
Loading

0 comments on commit cba764d

Please sign in to comment.