Use raven-js for client-side error capture and reporting
Capture exceptions reported via Angular's $exceptionHandler service and window.onerror and report them via Raven. The client currently uses the same Sentry DSN as the main application, which gets the DSN from the SENTRY_DSN environment variable. * Add a <script> tag to all pages on the site which defines a window.RAVEN_CONFIG variable which provides the DSN and release string needed to configure Raven JS on the client * Configure and setup RavenJS in the main site JS, Chrome extension and the sidebar. For the sidebar, Angular integration is configured using Raven's Angular plugin. * Configure the user ID associated with Sentry reports when the session state is received * Extract the code which builds the sidebar/extension config dictionary out of the template into its own module for easier sharing between the Chrome extension and the sidebar's code.
Showing
h/static/scripts/raven.js
0 → 100644
... | @@ -42,6 +42,7 @@ | ... | @@ -42,6 +42,7 @@ |
"node-uuid": "^1.4.3", | "node-uuid": "^1.4.3", | ||
"postcss": "^5.0.6", | "postcss": "^5.0.6", | ||
"raf": "^3.1.0", | "raf": "^3.1.0", | ||
"raven-js": "^2.0.2", | |||
"retry": "^0.8.0", | "retry": "^0.8.0", | ||
"scroll-into-view": "^1.3.1", | "scroll-into-view": "^1.3.1", | ||
"showdown": "^1.2.1", | "showdown": "^1.2.1", | ||
... | ... |
Please register or sign in to comment