• Robert Knight's avatar
    Replace raven-js with Sentry's new JavaScript SDK · 542b96f0
    Robert Knight authored
    Replace the legacy raven-js package with Sentry's new JS SDK [1], with a
    minimal wrapper in `util/sentry.js` that exports the same interface as
    the previous `raven.js` module.
    
    To enable Sentry, h or the browser extension must set a `sentry` key in the
    sidebar app's configuration.
    
    As part of switching SDKs, the following changes were made:
    
     - The AngularJS integration was removed, as we are in the process of
       migrating away from Angular
     - The custom code for unhandled promise rejections was removed, as the
       new SDK handles this already
     - The URL rewriting logic was removed. This was done to make the setup
       as minimal as possible. This may need to be re-added later.
     - The `report` function was removed, as it was not used anywhere
     - The `session` module now imports `util/sentry` directly rather than
       using Angular dependency injection. Now that we have a convenient way
       to mock all CJS/ES imports, there isn't a need to use DI for
       utilities
    
    [1] https://docs.sentry.io/platforms/javascript/
    542b96f0
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
embedding-examples Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.babelrc Loading commit data...
.dockerignore Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.prettierignore Loading commit data...
.prettierrc Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Dockerfile Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...
requirements-dev.in Loading commit data...
tox.ini Loading commit data...
yarn.lock Loading commit data...