initializePipelineView.tsx 885 B

123456789101112131415161718192021222324
  1. import type {Config} from 'sentry/types';
  2. import {metric} from 'sentry/utils/analytics';
  3. import {commonInitialization} from './commonInitialization';
  4. import {initializeSdk} from './initializeSdk';
  5. import {renderOnDomReady} from './renderOnDomReady';
  6. import {renderPipelineView} from './renderPipelineView';
  7. export function initializePipelineView(config: Config) {
  8. commonInitialization(config);
  9. /**
  10. * XXX: Note we do not include routingInstrumentation because importing
  11. * `app/routes` significantly increases bundle size.
  12. *
  13. * A potential solution would be to use dynamic imports here to import
  14. * `app/routes` to pass to `initializeSdk()`
  15. */
  16. initializeSdk(config);
  17. // Used for operational metrics to determine that the application js
  18. // bundle was loaded by browser.
  19. metric.mark({name: 'sentry-pipeline-init'});
  20. renderOnDomReady(renderPipelineView);
  21. }