Skip to content

Commit

Permalink
add initial sentry sdk setup
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed May 29, 2024
1 parent a333e44 commit f96c28c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,24 @@ <h3 id="basic-html-message">
})();
</script>

<!-- Add Sentry SDK -->
<script
src="https://js.sentry-cdn.com/46062cbe0aeb7a3b2bb4c3a9b8cd1ac7.min.js"
crossorigin="anonymous"
></script>
<script>
Sentry.onLoad(function() {
Sentry.init({
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions
// Session Replay
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.
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
});
});
</script>
<!-- END Add Sentry SDK -->

<!-- start the discovery application -->
<script src="./libs/require.js"></script>
<script src="./config/shim.js?v=<APP_VERSION>"></script>
Expand Down

0 comments on commit f96c28c

Please sign in to comment.