question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conflicting Sentry integration

See original GitHub issue

The way in which Sentry is integrated into this project is conflicting with our React application’s Sentry configuration.

I think there are at least two issues, which might be related:

  1. This scope configuration seems to be overriding all of our application’s Sentry context as described in https://github.com/getsentry/sentry-javascript/issues/3206.

    As mentioned in @sentry/minimal’s usage documentation:

    it is discouraged to interfere with the event context. If for some reason your library needs to inject context information, beware that this might override the user’s context values

    Is this scope configuration necessary? Would it be possible to add configuration to disable this behavior?

  2. Your dependency on @sentry/minimal@5.12.0 makes it impossible for us to upgrade to Sentry v6 as described in https://github.com/getsentry/sentry-javascript/issues/3234#issuecomment-772968903.

    While this is a known challenge with competing Sentry instances on a page, would it be possible to upgrade @sentry/minimal to at least v5.27.0?

I’m happy to help out with both of the issues above. Let me know what you think, and thanks in advance for your cooperation!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
pcholujcommented, Feb 17, 2021

Hi, this one will be added to next release

3reactions
pcholujcommented, Mar 9, 2021

Update for this was released yesterday, can you confirm that its working ok now ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

sentry/browser no-conflict mode · Issue #1656 - GitHub
The problem is that app can be integrated into other apps which have Sentry as well, so I will get conflicts. I didn't...
Read more >
Troubleshooting for JavaScript - Sentry Documentation
Integrations are setup on the Client , if you need to deal with multiple clients and hubs you have to make sure to...
Read more >
SQL Sentry Conflict Viewer | SentryOne
The Conflict Viewer is initially sorted in descending order by Total Conflict Time, which is the total time an event conflicts with other...
Read more >
WordPress Sentry - Plugins
This plugin can report PHP errors (optionally) and JavaScript errors (optionally) to Sentry and integrates with its release tracking.
Read more >
Troubleshooting for Electron - Sentry Documentation
If you need help solving issues with your Sentry JavaScript SDK integration, ... To be able to manage several Sentry instances without any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found