diff --git a/client/src/index.js b/client/src/index.js index bc6f8e153..d54a192a5 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -22,7 +22,7 @@ import { ConfigProvider } from "antd"; // Dinero.globalLocale = "en-CA"; Dinero.globalRoundingMode = "HALF_EVEN"; -if (process.env.NODE_ENV !== "development") { +// if (process.env.NODE_ENV !== "development") { Sentry.init({ dsn: "https://fd7e89369b6b4bdc9c6c4c9f22fa4ee4@o492140.ingest.sentry.io/5651027", ignoreErrors: [ @@ -37,11 +37,41 @@ if (process.env.NODE_ENV !== "development") { }), new Sentry.BrowserTracing(), ], + tracePropagationTargets: [ + "api.imex.online", + "api.test.imex.online", + "db.imex.online", + ], tracesSampleRate: 1.0, replaysOnErrorSampleRate: 1.0, environment: process.env.NODE_ENV, }); -} +// } +//if (process.env.NODE_ENV !== "development") { +Sentry.init({ + dsn: "https://fd7e89369b6b4bdc9c6c4c9f22fa4ee4@o492140.ingest.sentry.io/5651027", + ignoreErrors: [ + "ResizeObserver loop", + "Module specifier, 'fs' does not start", + "Module specifier, 'zlib' does not start with", + ], + integrations: [ + Sentry.replayIntegration({ + maskAllText: false, + blockAllMedia: true, + }), + new Sentry.BrowserTracing({}), + ], + tracePropagationTargets: [ + "api.imex.online", + "api.test.imex.online", + "db.imex.online", + ], + tracesSampleRate: 1.0, + replaysOnErrorSampleRate: 1.0, + environment: process.env.NODE_ENV, +}); +//} const router = createBrowserRouter( createRoutesFromElements(