-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Issue while using sentry to log exceptions in embedded applications #2783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Having scoured through the issues, I came across #2541 and #1764 threads. Using a separate sentry client instance on the embedded application does solve our initial problem but creates new ones. I would like the sentry client to capture all exceptions and errors triggered across the embedded application and not only the ones logged by Tried using This is my config using
and this is my config without it -
|
This noConflict behavior did not seem to be a problem with Raven.js. Any help in this direction will be welcome. Thanks! |
I understand that this is an open-source project but we are using the paid plan and our decision to renew rests on your suggestions for any workarounds that can fix the problem that we are facing. It's been more than a month since this issue was filed with no response, any help will be greatly appreciated. Thanks! |
I am also interested in this issue. We have used sentry in an embedded application for multiple years and it doesn't appear that the latest @sentry/browser version supports having multiple instances running within a page at the same time. When I have attempted to, I received errors (_mergeOptions not a function) #2622 . I need to find a way to make this work or look into other options. Are there any plans to bring back support for this so that multiple sentry instances do not conflict? Thanks! |
@mondalbidisha @cmackay |
@HazAT, any input on this issue? I see multiple request open for this but no response on how this should be handled. Thanks |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
This issue is definitely still relevant. Bumping to keep alive. |
Package + Version
@sentry/browser
- 5.19.2@sentry/integrations
- 5.19.2Version:
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?
The text was updated successfully, but these errors were encountered: