Browse Source

fix(profiling): disable browser profiling (#45716)

Disables browser profiling as it will currently cause page to throw if
backend is unresponsive
Jonas 2 years ago
parent
commit
f3feb670ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/bootstrap/initializeSdk.tsx

+ 1 - 1
static/app/bootstrap/initializeSdk.tsx

@@ -20,7 +20,7 @@ const SPA_MODE_ALLOW_URLS = [
 // We check for `window.__initialData.user` property and only enable profiling
 // for Sentry employees. This is to prevent a Violation error being visible in
 // the browser console for our users.
-const shouldEnableBrowserProfiling = window?.__initialData?.user?.isSuperuser;
+const shouldEnableBrowserProfiling = false; // window?.__initialData?.user?.isSuperuser;
 /**
  * We accept a routes argument here because importing `static/routes`
  * is expensive in regards to bundle size. Some entrypoints may opt to forgo