Skip to content

Commit

Permalink
add more data to sentry errors, should especially help with obscure '…
Browse files Browse the repository at this point in the history
…Network Error's (BloopAI#315)
  • Loading branch information
anastasiya1155 authored Mar 22, 2023
1 parent 40a6135 commit 9cae59f
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/utils/services.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as Sentry from '@sentry/react';
import { BrowserTracing } from '@sentry/tracing';
import { ExtraErrorData } from '@sentry/integrations';
import { useEffect } from 'react';
import {
createRoutesFromChildren,
Expand All @@ -24,6 +25,7 @@ export const initializeSentry = (dsn: string, release: string) => {
matchRoutes,
),
}),
new ExtraErrorData(),
],
environment: import.meta.env.MODE,
release,
Expand Down
114 changes: 114 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
},
"dependencies": {
"@rive-app/react-canvas": "^3.0.38",
"@sentry/integrations": "^7.44.2",
"@sentry/react": "^7.44.1",
"@sentry/tracing": "^7.44.1",
"@tauri-apps/api": "^1.2.0",
Expand Down

0 comments on commit 9cae59f

Please sign in to comment.