Skip to content

Commit

Permalink
chore: remove old sentry.io integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jameskmonger committed Aug 24, 2023
1 parent 2bbddfd commit c9bd29b
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 139 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy-to-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
env:
GA_ID: ${{ secrets.GA_ID }}
COOKIEBOT_ID: ${{ secrets.COOKIEBOT_ID }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
GAME_SERVER_URL: ${{ secrets.GAME_SERVER_URL }}
API_INFO_URL: ${{ secrets.API_INFO_URL }}
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }}
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ To try the game, head to [creaturechess.gg](https://creaturechess.gg), register
- Docker w/ docker-compose
- Yarn (`npm i -g yarn && yarn set version berry`)
- Auth0 set up (see below)
- **(optional)** A Sentry.io DSN in environment variable `SENTRY_DSN`
- **(optional)** A game server URL in environment variable `GAME_SERVER_URL`
- **(optional)** An info server URL in environment variable `API_INFO_URL`

Expand Down
2 changes: 0 additions & 2 deletions apps/web-game/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/react-fontawesome": "^0.1.16",
"@reduxjs/toolkit": "^1.7.1",
"@sentry/react": "^6.16.1",
"@sentry/tracing": "^6.16.1",
"@shoki/board": "workspace:*",
"@shoki/board-react": "workspace:*",
"@shoki/networking": "workspace:*",
Expand Down
16 changes: 0 additions & 16 deletions apps/web-game/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import * as React from "react";

import * as Sentry from "@sentry/react";
import { Integrations } from "@sentry/tracing";
import "pepjs";
import * as ReactDOM from "react-dom";
import { Provider as ReduxProvider } from "react-redux";
Expand All @@ -11,20 +9,6 @@ import { AuthProvider } from "@creature-chess/auth-web";
import { App } from "./app";
import { createAppStore } from "./store";

if (process.env.SENTRY_DSN) {
Sentry.init({
dsn: process.env.SENTRY_DSN,
environment:
process.env.NODE_ENV === "development" ? "development" : "production",
integrations: [new Integrations.BrowserTracing()],

// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
});
}

const AppRoot: React.FunctionComponent = () => {
const onRedirectCallback = (appState: any) => {
window.location.href = appState?.returnTo || window.location.pathname;
Expand Down
1 change: 0 additions & 1 deletion apps/web-game/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ module.exports = {
}),
new EnvironmentPlugin({
NODE_ENV: "production",
SENTRY_DSN: "",
API_INFO_URL: "http://localhost/api",
AUTH0_DOMAIN: "",
AUTH0_SPA_CLIENT_ID: "",
Expand Down
4 changes: 1 addition & 3 deletions apps/web-menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
"dependencies": {
"@auth0/auth0-react": "^1.10.2",
"@creature-chess/auth-web": "workspace:*",
"@creature-chess/ui": "workspace:*",
"@sentry/react": "^6.16.1",
"@sentry/tracing": "^6.16.1"
"@creature-chess/ui": "workspace:*"
},
"devDependencies": {
"awesome-typescript-loader": "^5.2.1",
Expand Down
16 changes: 0 additions & 16 deletions apps/web-menu/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
import * as React from "react";

import * as Sentry from "@sentry/react";
import { Integrations } from "@sentry/tracing";
import * as ReactDOM from "react-dom";

import { AuthProvider } from "@creature-chess/auth-web";

import { App } from "./app";

if (process.env.SENTRY_DSN) {
Sentry.init({
dsn: process.env.SENTRY_DSN,
environment:
process.env.NODE_ENV === "development" ? "development" : "production",
integrations: [new Integrations.BrowserTracing()],

// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
});
}

const AppRoot: React.FunctionComponent = () => {
const onRedirectCallback = (appState: any) => {
window.location.href = appState?.returnTo || window.location.pathname;
Expand Down
1 change: 0 additions & 1 deletion apps/web-menu/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ module.exports = {
}),
new EnvironmentPlugin({
NODE_ENV: "production",
SENTRY_DSN: "",
GAME_SERVER_URL: "http://localhost/game/",
API_INFO_URL: "http://localhost/api",
AUTH0_DOMAIN: "",
Expand Down
99 changes: 1 addition & 98 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2049,8 +2049,6 @@ __metadata:
"@fortawesome/free-solid-svg-icons": ^5.15.4
"@fortawesome/react-fontawesome": ^0.1.16
"@reduxjs/toolkit": ^1.7.1
"@sentry/react": ^6.16.1
"@sentry/tracing": ^6.16.1
"@shoki/board": "workspace:*"
"@shoki/board-react": "workspace:*"
"@shoki/networking": "workspace:*"
Expand Down Expand Up @@ -2092,8 +2090,6 @@ __metadata:
"@auth0/auth0-react": ^1.10.2
"@creature-chess/auth-web": "workspace:*"
"@creature-chess/ui": "workspace:*"
"@sentry/react": ^6.16.1
"@sentry/tracing": ^6.16.1
awesome-typescript-loader: ^5.2.1
circular-dependency-plugin: ^5.2.2
cpy-cli: ^2.0.0
Expand Down Expand Up @@ -3003,99 +2999,6 @@ __metadata:
languageName: node
linkType: hard

"@sentry/browser@npm:6.16.1":
version: 6.16.1
resolution: "@sentry/browser@npm:6.16.1"
dependencies:
"@sentry/core": 6.16.1
"@sentry/types": 6.16.1
"@sentry/utils": 6.16.1
tslib: ^1.9.3
checksum: baae33f5cb008a617b50c4b719e62c64db0ac107741938061902817310c72dc1e83bda560296954510a9dbb933425316d5a56911e455104307aa8e057c7722c2
languageName: node
linkType: hard

"@sentry/core@npm:6.16.1":
version: 6.16.1
resolution: "@sentry/core@npm:6.16.1"
dependencies:
"@sentry/hub": 6.16.1
"@sentry/minimal": 6.16.1
"@sentry/types": 6.16.1
"@sentry/utils": 6.16.1
tslib: ^1.9.3
checksum: 76f49b270d6acf1b9473822035d7a9a5c191f2df472c5768e01329afbb3f420634792f2a2826cd295982710d39b7c3d53e0c462e1d652451c0ba783c150420d8
languageName: node
linkType: hard

"@sentry/hub@npm:6.16.1":
version: 6.16.1
resolution: "@sentry/hub@npm:6.16.1"
dependencies:
"@sentry/types": 6.16.1
"@sentry/utils": 6.16.1
tslib: ^1.9.3
checksum: 032cd76e9de169ba3ee9683ab4c7603d7e5784fc9d5dc4173d7fedcecc3f9dd07c8ee1b95d250befff5943d1bdb2e9ee4d38c9976b723db959b33c10a1b2aead
languageName: node
linkType: hard

"@sentry/minimal@npm:6.16.1":
version: 6.16.1
resolution: "@sentry/minimal@npm:6.16.1"
dependencies:
"@sentry/hub": 6.16.1
"@sentry/types": 6.16.1
tslib: ^1.9.3
checksum: c928c94ce76538b8ad81d6e724f4c149b046087a48de60e43933520f6a51ce13abbcbc94f91575aa215e662901c65204344d9185f8afc6d5b449b3bedf85db54
languageName: node
linkType: hard

"@sentry/react@npm:^6.16.1":
version: 6.16.1
resolution: "@sentry/react@npm:6.16.1"
dependencies:
"@sentry/browser": 6.16.1
"@sentry/minimal": 6.16.1
"@sentry/types": 6.16.1
"@sentry/utils": 6.16.1
hoist-non-react-statics: ^3.3.2
tslib: ^1.9.3
peerDependencies:
react: 15.x || 16.x || 17.x
checksum: 985a48899ab27ff6d0d30ba7eb6c27c6f857d799ef6650cba57af8fafbf605cb0e1ed10935a2adb3f985347d23b59d5486b68e79a893e6a31689e3ac2c42b2d9
languageName: node
linkType: hard

"@sentry/tracing@npm:^6.16.1":
version: 6.16.1
resolution: "@sentry/tracing@npm:6.16.1"
dependencies:
"@sentry/hub": 6.16.1
"@sentry/minimal": 6.16.1
"@sentry/types": 6.16.1
"@sentry/utils": 6.16.1
tslib: ^1.9.3
checksum: c6a6f7acbdad9c181a0bec8ddc73a0f891869cef7978ccadccaab0f01b5c2000fe204dcbe2e5728484e1568b738f5aeaebd269c53f3c4db4bfbf83e95e1010d9
languageName: node
linkType: hard

"@sentry/types@npm:6.16.1":
version: 6.16.1
resolution: "@sentry/types@npm:6.16.1"
checksum: 994791c471a83b3e9a3c7052b6b2fef3ab404834eaabb61f3dd15b79782ca9cf6774cfb760040bbc06812a8420e8d40681d81a7d4b51ce7ed578d72d97c9a0b8
languageName: node
linkType: hard

"@sentry/utils@npm:6.16.1":
version: 6.16.1
resolution: "@sentry/utils@npm:6.16.1"
dependencies:
"@sentry/types": 6.16.1
tslib: ^1.9.3
checksum: 6a94b7a4706a28a6f0ccd4b4f9553217d17883974e3edf019f301110957ba592f0c33e653e3f0c79db735631ca87f1c03de8a60a69fd086c3a7cc1f88b7d2be2
languageName: node
linkType: hard

"@shoki/board-react@workspace:*, @shoki/board-react@workspace:modules/@shoki/board-react":
version: 0.0.0-use.local
resolution: "@shoki/board-react@workspace:modules/@shoki/board-react"
Expand Down Expand Up @@ -19338,7 +19241,7 @@ __metadata:
languageName: node
linkType: hard

"tslib@npm:^1.8.1, tslib@npm:^1.9.3":
"tslib@npm:^1.8.1":
version: 1.14.1
resolution: "tslib@npm:1.14.1"
checksum: dbe628ef87f66691d5d2959b3e41b9ca0045c3ee3c7c7b906cc1e328b39f199bb1ad9e671c39025bd56122ac57dfbf7385a94843b1cc07c60a4db74795829acd
Expand Down

0 comments on commit c9bd29b

Please sign in to comment.