|
1 | 1 | import React from "react"; |
2 | 2 | import ReactDOM from "react-dom/client"; |
3 | 3 | import App from "./App"; |
4 | | -// import * as Sentry from "@sentry/react"; |
| 4 | +import * as Sentry from "@sentry/react"; |
5 | 5 |
|
6 | | -// const isDebugEnabled = |
7 | | -// window.location.hostname === "localhost" || |
8 | | -// window.location.hostname === "frdevelop.irpsc.com"; |
| 6 | +Sentry.init({ |
| 7 | + dsn: "https://36c0b7c2ae9c5519c5b9205a6a8c6cc3@sentry.irpsc.com/3", |
9 | 8 |
|
10 | | -// Sentry.init({ |
11 | | -// dsn: "https://c71a2b88c754680dc5e405ccce46ffdf@sentry.hamravesh.com/7902", |
12 | | -// integrations: [ |
13 | | -// Sentry.browserTracingIntegration(), |
14 | | -// Sentry.replayIntegration(), |
15 | | -// ], |
16 | | -// // Performance and debugging |
17 | | -// enabled: "production", |
18 | | -// debug: isDebugEnabled, |
19 | | -// release: "1.0.0", |
20 | | -// dist: "1", |
21 | | -// attachStacktrace: true, |
22 | | -// autoSessionTracking: true, |
23 | | -// // Tracing |
24 | | -// tracesSampleRate: 1.0, // Capture 100% of the transactions |
25 | | -// // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled |
26 | | -// tracePropagationTargets: [ |
27 | | -// "localhost", |
28 | | -// "https://frdevelop.irpsc.com/metaverse/", |
29 | | -// ], |
30 | | -// // Session Replay |
31 | | -// replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production. |
32 | | -// replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur. |
33 | | -// }); |
| 9 | + integrations: [ |
| 10 | + Sentry.replayIntegration({ |
| 11 | + maskAllText: true, |
| 12 | + maskAllInputs: true, |
| 13 | + blockAllMedia: true, |
| 14 | + }), |
| 15 | + ], |
34 | 16 |
|
35 | | -const root = ReactDOM.createRoot(document.getElementById("root")); |
36 | | -root.render(<App />); |
| 17 | + replaysSessionSampleRate: 0.1, |
| 18 | + replaysOnErrorSampleRate: 1.0, |
| 19 | +}); |
| 20 | + |
| 21 | +ReactDOM.createRoot(document.getElementById("root")).render(<App />); |
0 commit comments