chore: Sentry performance monitoring (#1841)

* Hook up performance monitoring

* lint
This commit is contained in:
Tom Moor
2021-01-22 20:42:45 -08:00
committed by GitHub
parent 11e1108f4a
commit f6370ccf6d
7 changed files with 118 additions and 29 deletions

View File

@@ -44,29 +44,7 @@
<script>
//inject-env//
</script>
<script
src="https://browser.sentry-cdn.com/5.22.3/bundle.min.js"
integrity="sha384-A1qzcXXJWl+bzYr+r8AdFzSaLbdcbYRFmG37MEDKr4EYjtraUyoZ6UiMw31jHcV9"
crossorigin="anonymous"
></script>
<script>
if ("//inject-sentry-dsn//" && window.Sentry) {
window.Sentry.init({
dsn: "//inject-sentry-dsn//",
ignoreErrors: [
"ResizeObserver loop limit exceeded",
"AuthorizationError",
"BadRequestError",
"NetworkError",
"NotFoundError",
"OfflineError",
"ServiceUnavailableError",
"UpdateRequiredError",
"ChunkLoadError",
],
});
}
if (window.localStorage && window.localStorage.getItem("theme") === "dark") {
window.document.querySelector("#root").style.background = "#111319";
}