Skip to content

Commit 65168b1

Browse files
authored
Modify the Sentry.io running method
1 parent d05613e commit 65168b1

2 files changed

Lines changed: 6 additions & 17 deletions

File tree

index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ <h2>QR Code Generator</h2>
4242
</body>
4343
</html>
4444

45-
<script
46-
src="https://js.sentry-cdn.com/3410730c33a0ed28fc51370949258ba8.min.js"
47-
crossorigin="anonymous"
48-
></script>
45+
<script src="https://js.sentry-cdn.com/3410730c33a0ed28fc51370949258ba8.min.js" crossorigin="anonymous"></script>
46+
<script src="js/sentry.js"></script>
4947

5048
<script>
5149
Sentry.init({

js/sentry.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
Sentry.init({
2-
integrations: [
3-
Sentry.browserTracingIntegration(),
4-
Sentry.replayIntegration(),
5-
],
6-
tracesSampleRate: 1.0, // Performance monitoring
7-
replaysSessionSampleRate: 0.1, // Record 10% of sessions
8-
replaysOnErrorSampleRate: 1.0, // Always record on error
9-
});
10-
11-
// Test error (remove after verification)
12-
setTimeout(() => {
13-
myUndefinedFunction();
14-
}, 2000);
2+
dsn: "https://3410730c33a0ed28fc51370949258ba8@o4508406269995008.ingest.us.sentry.io/4508406275608576",
3+
integrations: [new Sentry.BrowserTracing()],
4+
tracesSampleRate: 1.0,
5+
});

0 commit comments

Comments
 (0)