initializeApp.tsx 725 B

12345678910111213141516171819202122
  1. import './legacyTwitterBootstrap';
  2. import './exportGlobals';
  3. import type {Config} from 'sentry/types/system';
  4. import {metric} from 'sentry/utils/analytics';
  5. import {commonInitialization} from './commonInitialization';
  6. import {initializeSdk} from './initializeSdk';
  7. import {processInitQueue} from './processInitQueue';
  8. import {renderMain} from './renderMain';
  9. import {renderOnDomReady} from './renderOnDomReady';
  10. export function initializeApp(config: Config) {
  11. commonInitialization(config);
  12. initializeSdk(config);
  13. // Used for operational metrics to determine that the application js
  14. // bundle was loaded by browser.
  15. metric.mark({name: 'sentry-app-init'});
  16. renderOnDomReady(renderMain);
  17. processInitQueue();
  18. }