Yordis Prieto
Yordis Prieto
Something I miss from VSCode is suggesting the `@spec` for a given function. I can live without doing real-time checks, but such a suggestion is huge time-saving.
I love that I came across something that got my attention, and a comment is in line with my first reaction. Because I broke the API and passed the Hub...
@AbhiPrasad @lobsterkatie @smeubank, any thoughts? (whenever you have time to deal with my curiosity obviously)
Alright, based on the following finding, it feels that the `Hub` should be the one with the state of the integrations instead of the `Client.` ![Screen Shot 2022-07-15 at 2...
Ignore what I said, I think the `core` is the place, and where things are confusing is in https://github.com/getsentry/sentry-javascript/blob/7a6c3553fd35d841e293979b066154d0cd015b6b/packages/core/src/sdk.ts#L16 I believe... that is where the in-and-out to multiple components start...
I wonder how many times `initAndBind` function suppose to be called in the lifecycle of the app. So far, only per environment client (browser, node, test)
Enough for tonight, Conclusion: (😄 after all): Hub is the global thing, the reason everything is global is because of the re-exporting of `hub` package from the SDKs, probably you...
Also, really helpful: https://develop.sentry.dev/sdk/unified-api/#concurrency
Also related to https://github.com/getsentry/sentry-javascript/issues/3268 since that is what this would give a opportunity to solve in some sense, but still, problematic with global integration installation and whatnot, so .... at...
The multi-hub kind of makes sense, but having the issue of global processors and monkey patches that wouldn't work with more than one instance is the big question. Before even...