Skip to content

Commit

Permalink
Additional Sentry configuration changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbartnik committed Dec 13, 2023
1 parent 1fd90cc commit 5d1e67f
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/sentry-client-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@radix-ui/react-tooltip": "^1.0.7",
"@sentry/core": "workspace:*",
"@sentry/electron": "^4.15.1",
"@sentry/integrations": "^7.87.0",
"@sentry/react": "^7.86.0",
"@sentry/ui": "workspace:*",
"@sentry/vite-plugin": "^2.10.2",
Expand Down
6 changes: 5 additions & 1 deletion apps/sentry-client-desktop/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {StrictMode, useEffect} from 'react'
import ReactDOM from 'react-dom/client'
import {AppRoutes} from './features/router'
import * as Sentry from "@sentry/react";
import {HttpClient} from "@sentry/integrations";
import "./index.css";
import {createRoutesFromChildren, matchRoutes, useLocation, useNavigationType} from "react-router-dom";

Expand All @@ -12,7 +13,6 @@ Sentry.init({
release: import.meta.env.APP_VERSION,
dsn: "https://a72bd57d284f8711761b36655e40b65e@o4506378569777152.ingest.sentry.io/4506378571612160",


integrations: [
new Sentry.BrowserTracing({
// See docs for support of different versions of variation of react router
Expand All @@ -27,6 +27,8 @@ Sentry.init({
}),
// Following are true by default: maskAllText: true, blockAllMedia: true,
new Sentry.Replay(),

new HttpClient()
],
// Performance Monitoring
tracesSampleRate: 0.1, // Capture 10% of the transactions
Expand All @@ -35,6 +37,8 @@ Sentry.init({
// Session Replay
replaysSessionSampleRate: 0.1, // Sample rate = 10%.
replaysOnErrorSampleRate: 1.0, // Sample rate= 100% where errors occur.

sendDefaultPii: true, // This option is required for capturing headers and cookies.
});

if (!rootElement.innerHTML) {
Expand Down
49 changes: 49 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 5d1e67f

Please sign in to comment.