Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@roncohen
Copy link
Contributor

@roncohen roncohen commented Mar 29, 2017

fix: Load opbeat-zone only when intialized

This should fix issues with loud promise rejections when
Opbeat isn't initialized, for example when running tests.

See: https://app.intercom.io/a/apps/645h60ha/inbox/all/conversations/9013266038?nsrc=slack

Ron Cohen added 2 commits March 27, 2017 09:47
This should fix issues with loud promise rejections when
Opbeat isn't initialized, for example when running tests.
@roncohen
Copy link
Contributor Author

roncohen commented Mar 30, 2017

I'm worried that the user will import something between opbeat-react and the calling initOpbeat which will mess with the instrumentation.

edit: For example, if a library comes with it's own Promise polyfill, discovers there are no native Promises, defines their own and then use their embedded version, zone.js will not be effective on those.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants