Skip to content

Commit

Permalink
chore: Remove Sentry for error logging. It will return in another for…
Browse files Browse the repository at this point in the history
…m later.
  • Loading branch information
itssimple committed Oct 11, 2022
1 parent 6d620e8 commit eba033e
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 241 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"game_ids": [21812]
},
"externally_connectable": {
"matches": ["https://www.bungie.net", "https://o2g.itssimple.se", "https://sentry.nolifeking85.tv"]
"matches": ["https://www.bungie.net", "https://o2g.itssimple.se"]
},
"protocol_override_domains": { "googlesyndication": "http" },
"start_window": "background",
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
"typescript": "^4.6.2"
},
"dependencies": {
"@sentry/browser": "^6.19.7",
"@sentry/react": "^6.19.7",
"@sentry/tracing": "^6.19.7",
"react": "^17.0.2",
"react-dom": "^17.0.2"
}
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"game_ids": [21812]
},
"externally_connectable": {
"matches": ["https://www.bungie.net", "https://o2g.itssimple.se", "https://sentry.nolifeking85.tv"]
"matches": ["https://www.bungie.net", "https://o2g.itssimple.se"]
},
"protocol_override_domains": { "googlesyndication": "http" },
"start_window": "background",
Expand Down
37 changes: 0 additions & 37 deletions src/scripts/background.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
import * as Sentry from "@sentry/browser";
import { BrowserTracing } from "@sentry/tracing";

var machineId = null;

overwolf.extensions.current.getManifest(function (app) {
window._appVersion = app.meta.version;

Sentry.init({
dsn: "https://cd1d4d46d6b14f3ea41d6ede28ad95a7@sentry.nolifeking85.tv/2",
integrations: [new BrowserTracing()],
tracesSampleRate: 1.0,
release: app.meta.version,
});

overwolf.profile.getCurrentUser((userResult) => {
if (userResult.success) {
Sentry.setUser({
id: `${userResult.machineId}-OW-${userResult.username}`,
});
} else {
Sentry.setUser({
id: `${userResult.machineId}-OWUUID-${userResult.userId}`,
});
}
machineId = userResult.machineId;
});
});

import { log } from "./log.js";
import { EventEmitter } from "./eventEmitter.js";
import { Destiny2Database } from "./indexedDB.js";
Expand Down Expand Up @@ -407,15 +378,7 @@ async function initializeDatabase() {
window.eventEmitter.addEventListener("destiny-data-loaded", async function () {
if (await destinyApiClient.isAuthenticated()) {
await destinyApiClient.checkManifestVersion();
var profiles = await destinyApiClient.getLinkedProfiles();
await destinyApiClient.getTrackableData(true);

var bnetMemberId = await db.getItem("destinyBungieMembershipId");

Sentry.setUser({
id: `${window.machineId}-Bungie-${bnetMemberId}`,
username: `${profiles.bnetMembership.supplementalDisplayName}`,
});
} else {
window.eventEmitter.emit("destiny-not-authed");
}
Expand Down
12 changes: 0 additions & 12 deletions src/scripts/react/Loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@
import React, { useEffect } from "react";
import ReactDOM from "react-dom";

import * as Sentry from "@sentry/react";
import { BrowserTracing } from "@sentry/tracing";

overwolf.extensions.current.getManifest(function (app) {
Sentry.init({
dsn: "https://cd1d4d46d6b14f3ea41d6ede28ad95a7@sentry.nolifeking85.tv/2",
integrations: [new BrowserTracing()],
tracesSampleRate: 1.0,
release: app.meta.version,
});
});

import { LoadingIndicator } from "./components/loadingIndicator";

import { DestinyApiClient } from "../destiny2/apiClient";
Expand Down
27 changes: 0 additions & 27 deletions src/scripts/react/MainWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,6 @@
import React, { useEffect } from "react";
import ReactDOM from "react-dom";

import * as Sentry from "@sentry/react";
import { BrowserTracing } from "@sentry/tracing";

var machineId: string | undefined | null = null;

overwolf.extensions.current.getManifest(function (app) {
Sentry.init({
dsn: "https://cd1d4d46d6b14f3ea41d6ede28ad95a7@sentry.nolifeking85.tv/2",
integrations: [new BrowserTracing()],
tracesSampleRate: 1.0,
release: app.meta.version,
});

overwolf.profile.getCurrentUser((userResult) => {
if (userResult.success) {
Sentry.setUser({
id: `${userResult.machineId}-OW-${userResult.username}`,
});
} else {
Sentry.setUser({
id: `${userResult.machineId}-OWUUID-${userResult.userId}`,
});
}
machineId = userResult.machineId;
});
});

import "../../public/css/bootstrap.min.css";
import "../../public/css/main-window.css";
import "../../public/css/window-styles.css";
Expand Down
12 changes: 0 additions & 12 deletions src/scripts/react/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@
import React, { useEffect, useState } from "react";
import ReactDOM from "react-dom";

import * as Sentry from "@sentry/react";
import { BrowserTracing } from "@sentry/tracing";

overwolf.extensions.current.getManifest(function (app) {
Sentry.init({
dsn: "https://cd1d4d46d6b14f3ea41d6ede28ad95a7@sentry.nolifeking85.tv/2",
integrations: [new BrowserTracing()],
tracesSampleRate: 1.0,
release: app.meta.version,
});
});

import { Titlebar } from "./Overlay/Titlebar";
import { EventEmitter } from "../eventEmitter";
import { GoalList } from "./Overlay/GoalList";
Expand Down
14 changes: 0 additions & 14 deletions src/windows/background-window.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@
<html>
<head>
<title>Destiny 2 Goal Tracker Background Window</title>
<script type="module">
import * as Sentry from "@sentry/browser";
import { BrowserTracing } from "@sentry/tracing";

Sentry.init({
dsn: "https://cd1d4d46d6b14f3ea41d6ede28ad95a7@sentry.nolifeking85.tv/2",
integrations: [new BrowserTracing()],

// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
});
</script>
</head>
<body>
Why did you open this window?<br />
Expand Down
14 changes: 0 additions & 14 deletions src/windows/loading-window.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,6 @@
<head>
<meta charset="UTF-8" />
<title>Destiny 2 Goal Tracker - Loading</title>
<script type="module">
import * as Sentry from "@sentry/browser";
import { BrowserTracing } from "@sentry/tracing";

Sentry.init({
dsn: "https://cd1d4d46d6b14f3ea41d6ede28ad95a7@sentry.nolifeking85.tv/2",
integrations: [new BrowserTracing()],

// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
});
</script>
<link type="text/css" href="../../fonts/style.css" rel="stylesheet" />
</head>
<body>
Expand Down
14 changes: 0 additions & 14 deletions src/windows/main-window.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,6 @@
<head>
<meta charset="UTF-8" />
<title>Destiny 2 Goal Tracker - Main Window</title>
<script type="module">
import * as Sentry from "@sentry/browser";
import { BrowserTracing } from "@sentry/tracing";

Sentry.init({
dsn: "https://cd1d4d46d6b14f3ea41d6ede28ad95a7@sentry.nolifeking85.tv/2",
integrations: [new BrowserTracing()],

// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
});
</script>
<link type="text/css" href="../../fonts/style.css" rel="stylesheet" />
<script type="module" src="../scripts/draggable-window.js" ></script>
<script type="text/javascript" src="../scripts/utils.js"></script>
Expand Down
14 changes: 0 additions & 14 deletions src/windows/overlay-window.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@
<html>
<head>
<title>Destiny 2 - Overlay window</title>
<script type="module">
import * as Sentry from "@sentry/browser";
import { BrowserTracing } from "@sentry/tracing";

Sentry.init({
dsn: "https://cd1d4d46d6b14f3ea41d6ede28ad95a7@sentry.nolifeking85.tv/2",
integrations: [new BrowserTracing()],

// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
});
</script>
<link type="text/css" href="../../fonts/style.css" rel="stylesheet" />
<script type="module" src="../scripts/draggable-window.js"></script>
<script type="text/javascript" src="../scripts/utils.js"></script>
Expand Down
92 changes: 0 additions & 92 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1117,81 +1117,6 @@
estree-walker "^1.0.1"
picomatch "^2.2.2"

"@sentry/browser@6.19.7", "@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/core@6.19.7":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-6.19.7.tgz#156aaa56dd7fad8c89c145be6ad7a4f7209f9785"
integrity sha512-tOfZ/umqB2AcHPGbIrsFLcvApdTm9ggpi/kQZFkej7kMphjT+SGBiQfYtjyg9jcRW+ilAR4JXC9BGKsdEQ+8Vw==
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"

"@sentry/hub@6.19.7":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-6.19.7.tgz#58ad7776bbd31e9596a8ec46365b45cd8b9cfd11"
integrity sha512-y3OtbYFAqKHCWezF0EGGr5lcyI2KbaXW2Ik7Xp8Mu9TxbSTuwTe4rTntwg8ngPjUQU3SUHzgjqVB8qjiGqFXCA==
dependencies:
"@sentry/types" "6.19.7"
"@sentry/utils" "6.19.7"
tslib "^1.9.3"

"@sentry/minimal@6.19.7":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-6.19.7.tgz#b3ee46d6abef9ef3dd4837ebcb6bdfd01b9aa7b4"
integrity sha512-wcYmSJOdvk6VAPx8IcmZgN08XTXRwRtB1aOLZm+MVHjIZIhHoBGZJYTVQS/BWjldsamj2cX3YGbGXNunaCfYJQ==
dependencies:
"@sentry/hub" "6.19.7"
"@sentry/types" "6.19.7"
tslib "^1.9.3"

"@sentry/react@^6.19.7":
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.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.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.19.7"
"@sentry/minimal" "6.19.7"
"@sentry/types" "6.19.7"
"@sentry/utils" "6.19.7"
tslib "^1.9.3"

"@sentry/types@6.19.7":
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/utils@6.19.7":
version "6.19.7"
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-6.19.7.tgz#6edd739f8185fd71afe49cbe351c1bbf5e7b7c79"
integrity sha512-z95ECmE3i9pbWoXQrD/7PgkBAzJYR+iXtPuTkpBjDKs86O3mT+PXOT3BAn79w2wkn7/i3vOGD2xVr1uiMl26dA==
dependencies:
"@sentry/types" "6.19.7"
tslib "^1.9.3"

"@sindresorhus/is@^4.0.0":
version "4.6.0"
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-4.6.0.tgz#3c7c9c46e678feefe7a2e5bb609d3dbd665ffb3f"
Expand Down Expand Up @@ -4129,13 +4054,6 @@ has@^1.0.3:
dependencies:
function-bind "^1.1.1"

hoist-non-react-statics@^3.3.2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==
dependencies:
react-is "^16.7.0"

home-or-tmp@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8"
Expand Down Expand Up @@ -6339,11 +6257,6 @@ react-dom@^17.0.2:
object-assign "^4.1.1"
scheduler "^0.20.2"

react-is@^16.7.0:
version "16.13.1"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==

react@^17.0.2:
version "17.0.2"
resolved "https://registry.yarnpkg.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037"
Expand Down Expand Up @@ -7467,11 +7380,6 @@ trim-right@^1.0.1:
resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003"
integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=

tslib@^1.9.3:
version "1.14.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==

tslib@^2.2.0:
version "2.3.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01"
Expand Down

0 comments on commit eba033e

Please sign in to comment.