Description
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
- Provide a link to the affected event from your Sentry account
Package + Version
-
@sentry/browser
- 5.19.2 -
@sentry/integrations
- 5.19.2
Version:
5.19.2
Description
We are using @sentry/broswer for error logging in two different javascript applications where one app is embedded in the other. The minified javascript files of the embedded application are loaded in the host application via CDN links. What we would like to achieve is that the exceptions triggered in these two applications should be logged in their respective sentry projects.
However, exceptions triggered in the embedded application are captured as part of the host application ( Seems like Sentry definition in host application is overriding the one in the embedded app ). We tried whitelisting the CDN link ( through which the minified js files are loaded ) in the host application using the 'denyUrls' and 'allowUrls' properties [https://docs.sentry.io/error-reporting/configuration/?platform=browser#deny-urls] while initializing sentry, but it was not of any help.
We were using Raven.js prior to @sentry/broswer and were not facing similar issues. Is this expected behavior for the new SDK or a bug?