feat: add error tracking support via glitchtip

This commit is contained in:
Derrick Hammer 2023-08-13 19:23:41 -04:00
parent b4757dec86
commit e5e5e4c9b9
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
6 changed files with 90 additions and 3 deletions

77
npm-shrinkwrap.json generated
View File

@ -23,6 +23,7 @@
"@noble/ciphers": "^0.1.4",
"@peculiar/webcrypto": "^1.4.3",
"@scure/bip39": "^1.2.1",
"@sentry/browser": "^7.63.0",
"binconv": "^0.2.0",
"classnames": "^2.3.2",
"ed25519-keygen": "^0.4.1",
@ -3839,6 +3840,82 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/@sentry-internal/tracing": {
"version": "7.63.0",
"resolved": "https://registry.npmjs.org/@sentry-internal/tracing/-/tracing-7.63.0.tgz",
"integrity": "sha512-Fxpc53p6NGvLSURg3iRvZA0k10K9yfeVhtczvJnpX30POBuV41wxpkLHkb68fjksirjEma1K3Ut1iLOEEDpPQg==",
"dependencies": {
"@sentry/core": "7.63.0",
"@sentry/types": "7.63.0",
"@sentry/utils": "7.63.0",
"tslib": "^2.4.1 || ^1.9.3"
},
"engines": {
"node": ">=8"
}
},
"node_modules/@sentry/browser": {
"version": "7.63.0",
"resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-7.63.0.tgz",
"integrity": "sha512-P1Iw/2281C/7CUCRsN4jgXvjMNKnrwKqxRg7JqN8eVeCDPMpOeEPHNJ6YatEXdVLTKVn0JB7L63Q1prhFr8+SQ==",
"dependencies": {
"@sentry-internal/tracing": "7.63.0",
"@sentry/core": "7.63.0",
"@sentry/replay": "7.63.0",
"@sentry/types": "7.63.0",
"@sentry/utils": "7.63.0",
"tslib": "^2.4.1 || ^1.9.3"
},
"engines": {
"node": ">=8"
}
},
"node_modules/@sentry/core": {
"version": "7.63.0",
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.63.0.tgz",
"integrity": "sha512-13Ljiq8hv6ieCkO+Am99/PljYJO5ynKT/hRQrWgGy9IIEgUr8sV3fW+1W6K4/3MCeOJou0HsiGBjOD1mASItVg==",
"dependencies": {
"@sentry/types": "7.63.0",
"@sentry/utils": "7.63.0",
"tslib": "^2.4.1 || ^1.9.3"
},
"engines": {
"node": ">=8"
}
},
"node_modules/@sentry/replay": {
"version": "7.63.0",
"resolved": "https://registry.npmjs.org/@sentry/replay/-/replay-7.63.0.tgz",
"integrity": "sha512-ikeFVojuP9oDF103blZcj0Vvb4S50dV54BESMrMW2lYBoMMjvOd7AdL+iDHjn1OL05/mv1C6Oc8MovmvdjILVA==",
"dependencies": {
"@sentry/core": "7.63.0",
"@sentry/types": "7.63.0",
"@sentry/utils": "7.63.0"
},
"engines": {
"node": ">=12"
}
},
"node_modules/@sentry/types": {
"version": "7.63.0",
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.63.0.tgz",
"integrity": "sha512-pZNwJVW7RqNLGuTUAhoygt0c9zmc0js10eANAz0MstygJRhQI1tqPDuiELVdujPrbeL+IFKF+7NvRDAydR2Niw==",
"engines": {
"node": ">=8"
}
},
"node_modules/@sentry/utils": {
"version": "7.63.0",
"resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.63.0.tgz",
"integrity": "sha512-7FQv1RYAwnuTuarruP+1+Jd6YQuN7i/Y7KltwPMVEwU7j5mzYQaexLr/Jz1XIdR2KYVdkbXQyP8jj8BmA6u9Jw==",
"dependencies": {
"@sentry/types": "7.63.0",
"tslib": "^2.4.1 || ^1.9.3"
},
"engines": {
"node": ">=8"
}
},
"node_modules/@sigstore/protobuf-specs": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/@sigstore/protobuf-specs/-/protobuf-specs-0.1.0.tgz",

View File

@ -49,6 +49,7 @@
"@noble/ciphers": "^0.1.4",
"@peculiar/webcrypto": "^1.4.3",
"@scure/bip39": "^1.2.1",
"@sentry/browser": "^7.63.0",
"binconv": "^0.2.0",
"classnames": "^2.3.2",
"ed25519-keygen": "^0.4.1",

2
shared/constants.ts Normal file
View File

@ -0,0 +1,2 @@
export const SENTRY_DSN =
"https://366406d802a646a7a82363a4486a5103@errortracker.lumeweb.com/1";

View File

@ -1,7 +1,10 @@
import { createRoot } from "react-dom";
import React from "react";
import * as Sentry from "@sentry/browser";
import App from "./apps/account/App.tsx";
import { SENTRY_DSN } from "../shared/constants.ts";
Sentry.init({ dsn: SENTRY_DSN });
const root = createRoot(document.getElementById("app"));

View File

@ -1,7 +1,9 @@
import { createRoot } from "react-dom";
import React from "react";
import App from "./apps/dashboard/App.jsx";
import { SENTRY_DSN } from "../shared/constants.ts";
Sentry.init({ dsn: SENTRY_DSN });
const root = createRoot(document.getElementById("app"));

View File

@ -1,7 +1,9 @@
import { createRoot } from "react-dom";
import React from "react";
import App from "./apps/onboarding/App.tsx";
import { SENTRY_DSN } from "../shared/constants.ts";
Sentry.init({ dsn: SENTRY_DSN });
const root = createRoot(document.getElementById("app"));