Description
Version Information
Version: 20.10.1
Description
According to the documentation (https://docs.sentry.io/platforms/javascript/install/lazy-load-sentry/#sdk-version) Sentry offers a lightweight lazy-loadable version of the Sentry JS SDK which is a lot smaller than the default bundles.
I tried to use it, but when I open the script that's shown inside the "JavaScript Loader" input box as shown in the docs, the entire contents of the script look like this:
function _sentry_noopWarning() {
console.warn("The Sentry loader you are trying to use isn't working anymore, check your configuration.");
}
var Sentry = {
addBreadcrumb: _sentry_noopWarning,
captureEvent: _sentry_noopWarning,
captureException: _sentry_noopWarning,
captureMessage: _sentry_noopWarning,
configureScope: _sentry_noopWarning,
forceLoad: _sentry_noopWarning,
init: _sentry_noopWarning,
onLoad: _sentry_noopWarning,
showReportDialog: _sentry_noopWarning,
withScope: _sentry_noopWarning,
};
_sentry_noopWarning();
I tried grep-ing through the Sentry source code about this, but I was only able to find the template that generates this script (https://github.com/getsentry/sentry/blob/master/src/sentry/templates/sentry/js-sdk-loader-noop.js.tmpl) and couldn't figure out further how does Sentry decide to show this broken version instead of the real script.
The documentation isn't helpful either.
Steps to Reproduce
Install Sentry on-premises and check the JavaScript Loader, I guess.
Logs
No logs
Metadata
Metadata
Assignees
Type
Projects
Status
Status
Status