Skip to content

Commit ad984cc

Browse files
authored
Changed sentry working strucure and modifed the settings
1 parent 47baf16 commit ad984cc

9 files changed

Lines changed: 24 additions & 28 deletions

File tree

index.html

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>All-in-One Tools</title>
77
<link rel="stylesheet" href="css/style.css">
8+
9+
<!-- Sentry SDK with Tracing + Replay -->
10+
<script
11+
src="https://browser.sentry-cdn.com/7.120.1/bundle.tracing.replay.min.js"
12+
integrity="sha384-KMYlb5C6iZLkOH4rXm0wVnCUTrUKvfxJtR3F+HlhRj3k0DL3mXjFq99iTnVVFVkT"
13+
crossorigin="anonymous"
14+
></script>
15+
<script src="js/sentry.js"></script>
816
</head>
917
<body>
1018
<header>
@@ -27,33 +35,16 @@ <h2>Calculator</h2>
2735
<h2>Password Generator</h2>
2836
<p>Create strong and secure passwords.</p>
2937
<a href="tools/password.html" class="btn">Open</a>
30-
</div>
38+
</div>
3139
<div class="tool-card">
3240
<h2>QR Code Generator</h2>
3341
<p>Turn text or links into QR codes.</p>
3442
<a href="tools/qr.html" class="btn">Open</a>
3543
</div>
36-
3744
</main>
3845

3946
<footer>
4047
<p>Made with ❤️ by LCS</p>
4148
</footer>
4249
</body>
43-
</html>
44-
45-
<!-- Sentry Loader -->
46-
<script src="https://js.sentry-cdn.com/c38250fd2a7fdb30e16b4673276ff3de.min.js" crossorigin="anonymous"></script>
47-
<script src="js/sentry.js"></script>
48-
49-
<script>
50-
Sentry.init({
51-
integrations: [
52-
Sentry.browserTracingIntegration(),
53-
Sentry.replayIntegration(),
54-
],
55-
tracesSampleRate: 1.0,
56-
replaysSessionSampleRate: 0.1,
57-
replaysOnErrorSampleRate: 1.0,
58-
});
59-
</script>
50+
</html>

js/sentry.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
Sentry.init({
22
dsn: "https://c38250fd2a7fdb30e16b4673276ff3de@o4509151884148736.ingest.us.sentry.io/4510038332080128",
3-
integrations: [Sentry.browserTracingIntegration()],
4-
tracesSampleRate: 1.0, // 100% performance data (lower later if too much)
3+
integrations: [
4+
Sentry.browserTracingIntegration(),
5+
Sentry.replayIntegration(),
6+
],
7+
tracesSampleRate: 1.0,
8+
replaysSessionSampleRate: 0.1,
9+
replaysOnErrorSampleRate: 1.0
510
});
611

712
Sentry.addBreadcrumb({

tools/calculator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ <h1>Calculator</h1>
4646
</body>
4747
</html>
4848

49-
<script src="https://js.sentry-cdn.com/c38250fd2a7fdb30e16b4673276ff3de.min.js" crossorigin="anonymous"></script>
49+
<script src="https://browser.sentry-cdn.com/7.120.1/bundle.tracing.replay.min.js"></script>
5050
<script src="../js/sentry.js"></script>

tools/clock.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ <h1>🕒 Live Clock</h1>
2525
</body>
2626
</html>
2727

28-
<script src="https://js.sentry-cdn.com/c38250fd2a7fdb30e16b4673276ff3de.min.js" crossorigin="anonymous"></script>
28+
<script src="https://browser.sentry-cdn.com/7.120.1/bundle.tracing.replay.min.js"></script>
2929
<script src="../js/sentry.js"></script>

tools/converter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ <h2>Result: <span id="result">-</span></h2>
4141
</body>
4242
</html>
4343

44-
<script src="https://js.sentry-cdn.com/c38250fd2a7fdb30e16b4673276ff3de.min.js" crossorigin="anonymous"></script>
44+
<script src="https://browser.sentry-cdn.com/7.120.1/bundle.tracing.replay.min.js"></script>
4545
<script src="../js/sentry.js"></script>

tools/countdown.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ <h1>⏱ Countdown Timer</h1>
6060
</body>
6161
</html>
6262

63-
<script src="https://js.sentry-cdn.com/c38250fd2a7fdb30e16b4673276ff3de.min.js" crossorigin="anonymous"></script>
63+
<script src="https://browser.sentry-cdn.com/7.120.1/bundle.tracing.replay.min.js"></script>
6464
<script src="../js/sentry.js"></script>

tools/password.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ <h1>Password Generator</h1>
4040
</body>
4141
</html>
4242

43-
<script src="https://js.sentry-cdn.com/c38250fd2a7fdb30e16b4673276ff3de.min.js" crossorigin="anonymous"></script>
43+
<script src="https://browser.sentry-cdn.com/7.120.1/bundle.tracing.replay.min.js"></script>
4444
<script src="../js/sentry.js"></script>

tools/qr.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ <h1>QR Code Generator</h1>
3636
</body>
3737
</html>
3838

39-
<script src="https://js.sentry-cdn.com/c38250fd2a7fdb30e16b4673276ff3de.min.js" crossorigin="anonymous"></script>
39+
<script src="https://browser.sentry-cdn.com/7.120.1/bundle.tracing.replay.min.js"></script>
4040
<script src="../js/sentry.js"></script>

tools/timestamp.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ <h2>Date ➝ Timestamp</h2>
3636
</body>
3737
</html>
3838

39-
<script src="https://js.sentry-cdn.com/c38250fd2a7fdb30e16b4673276ff3de.min.js" crossorigin="anonymous"></script>
39+
<script src="https://browser.sentry-cdn.com/7.120.1/bundle.tracing.replay.min.js"></script>
4040
<script src="../js/sentry.js"></script>

0 commit comments

Comments
 (0)