-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
feat: open source gsApp (revised) #85592
Conversation
❌ 5 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Bundle ReportChanges will increase total bundle size by 8.17MB (24.47%) ⬆️
Affected Assets, Files, and Routes:view changes for bundle: app-webpack-bundle-array-pushAssets Changed:
Files in
Files in
Files in
Files in
Files in
Files in
|
const [{default: registerHooks}, {initializeBundleMetrics}] = await Promise.all([ | ||
import('getsentry/registerHooks'), | ||
import('getsentry/initializeBundleMetrics'), | ||
]); | ||
|
||
// getsentry augments Sentry's application through a 'hook' mechanism. Sentry | ||
// provides various hooks into parts of its application. Thus all getsentry | ||
// functionality is initialized by registering its hook functions. | ||
registerHooks(); | ||
|
||
const {initializeMain} = await initalizeMainImport; | ||
initializeMain(config); | ||
|
||
initializeBundleMetrics(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can reorder this so the initalizeBundleMetrics
can keep resolving while calling registerhooks
const [{default: registerHooks}, {initializeBundleMetrics}] = await Promise.all([ | |
import('getsentry/registerHooks'), | |
import('getsentry/initializeBundleMetrics'), | |
]); | |
// getsentry augments Sentry's application through a 'hook' mechanism. Sentry | |
// provides various hooks into parts of its application. Thus all getsentry | |
// functionality is initialized by registering its hook functions. | |
registerHooks(); | |
const {initializeMain} = await initalizeMainImport; | |
initializeMain(config); | |
initializeBundleMetrics(); | |
const registerHooksImport = import('getsentry/registerHooks'); | |
const initalizeBundleMetricsImport = import('getsentry/initializeBundleMetrics'); | |
// getsentry augments Sentry's application through a 'hook' mechanism. Sentry | |
// provides various hooks into parts of its application. Thus all getsentry | |
// functionality is initialized by registering its hook functions. | |
const {default: registerHooks} = await registerHooksImport; | |
registerHooks(); | |
const {initializeMain} = await initalizeMainImport; | |
initializeMain(config); | |
const {initializeBundleMetrics} = await initializeBundleMetricsImport; | |
initializeBundleMetrics(); |
This way you're able to boot things faster
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll... address this as a folllowup
(cherry picked from commit 08dc546)
I have waited for this, thank you 🥹 |
This open sources gsApp. Getsentry will remain unaffected after this is merged, then getsentry/getsentry#16675 will remove gsApp in getsentry. Differences: - gsApp's entrypoint index.tsx is inlined into the main sentry app, and makes use of sentry mode (#80342) so that open source sentry will not initialize gsApp. - getsentry devserver will set sentryMode appropriately so that gsApp is initialized getsentry devserver is still needed to work on gsApp, even though it lives in sentry. Eventually it'll all (gsAdmin, jest/webpack/eslint configs) be moved/merged over.
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Is it possible to move (or did we consider moving) the history to Examples: CC: @joshuarli |
Erm, there's probably some sensitive info in git history, so you'll have to live with searching through it in getsentry for now. |
This open sources gsApp. Getsentry will remain unaffected after this is merged, then https://github.com/getsentry/getsentry/pull/16675 will remove gsApp in getsentry.
Differences:
getsentry devserver is still needed to work on gsApp, even though it lives in sentry. Eventually it'll all (gsAdmin, jest/webpack/eslint configs) be moved/merged over.