From 1a5490cb39b781a17443e102972ef01328596b1a Mon Sep 17 00:00:00 2001 From: sigurdgroneng Date: Tue, 3 Sep 2024 08:38:00 +0200 Subject: [PATCH] Bruk sentry --- src/rootWrapper.tsx | 4 ++-- src/sentry2.tsx | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/rootWrapper.tsx b/src/rootWrapper.tsx index b10b398d..1bfeec2d 100644 --- a/src/rootWrapper.tsx +++ b/src/rootWrapper.tsx @@ -5,8 +5,8 @@ import { createRoot } from 'react-dom/client'; import App from './App'; import { createBrowserRouter } from 'react-router-dom'; -import './faro'; -// import './sentry2'; +// import './faro'; +import './sentry2'; // import { sentryCreateBrowserRouter } from './sentry2'; export const renderAsReactRoot = (fnr?: string) => { diff --git a/src/sentry2.tsx b/src/sentry2.tsx index 54edd3d8..621a8ef0 100644 --- a/src/sentry2.tsx +++ b/src/sentry2.tsx @@ -60,10 +60,8 @@ Sentry.init({ environment: getEnv(), enabled: getEnv() !== Env.Local, ignoreErrors: [ - /^Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.$/, - /^Uventet feil fra dekoratøren: NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. \[object Object]$/, - /^Uventet feil fra dekoratøren: NotFoundError: The object can not be found here. \[object Object]$/, - /^The object can not be found here.$/ + /Ampltidude/ + // /^Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.$/, ], // Set tracesSampleRate to 1.0 to capture 100% // of transactions for performance monitoring.