Added dedupe integration to sentry in index.js

This commit is contained in:
Nicola Thouliss 2021-05-14 14:15:54 +10:00
parent 1e20e4fcf9
commit e0e90ff0e5

View File

@ -1,6 +1,7 @@
import React from "react"; import React from "react";
import ReactDOM from "react-dom"; import ReactDOM from "react-dom";
import * as Sentry from "@sentry/react"; import * as Sentry from "@sentry/react";
import Dedupe from "@sentry/integrations";
import App from "./App"; import App from "./App";
import Modal from "react-modal"; import Modal from "react-modal";
@ -20,6 +21,7 @@ if (process.env.REACT_APP_LOGGING === "true") {
Sentry.init({ Sentry.init({
dsn: process.env.REACT_APP_SENTRY_DSN, dsn: process.env.REACT_APP_SENTRY_DSN,
release: "owlbear-rodeo@" + process.env.REACT_APP_VERSION, release: "owlbear-rodeo@" + process.env.REACT_APP_VERSION,
integrations: [new Dedupe()],
// Ignore resize error as it is triggered by going fullscreen on slower computers // Ignore resize error as it is triggered by going fullscreen on slower computers
// Ignore quota error // Ignore quota error
// Ignore XDR encoding failure bug in Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1678243 // Ignore XDR encoding failure bug in Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1678243