initializeApp.tsx 766 B

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