Skip to content

Commit

Permalink
Bruk sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
tu55eladd committed Sep 3, 2024
1 parent 519f7ac commit 1a5490c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/rootWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
6 changes: 2 additions & 4 deletions src/sentry2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1a5490c

Please sign in to comment.