mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
25 lines
885 B
TypeScript
25 lines
885 B
TypeScript
import type {Config} from 'sentry/types';
|
|
import {metric} from 'sentry/utils/analytics';
|
|
|
|
import {commonInitialization} from './commonInitialization';
|
|
import {initializeSdk} from './initializeSdk';
|
|
import {renderOnDomReady} from './renderOnDomReady';
|
|
import {renderPipelineView} from './renderPipelineView';
|
|
|
|
export function initializePipelineView(config: Config) {
|
|
commonInitialization(config);
|
|
/**
|
|
* XXX: Note we do not include routingInstrumentation because importing
|
|
* `app/routes` significantly increases bundle size.
|
|
*
|
|
* A potential solution would be to use dynamic imports here to import
|
|
* `app/routes` to pass to `initializeSdk()`
|
|
*/
|
|
initializeSdk(config);
|
|
|
|
// Used for operational metrics to determine that the application js
|
|
// bundle was loaded by browser.
|
|
metric.mark({name: 'sentry-pipeline-init'});
|
|
renderOnDomReady(renderPipelineView);
|
|
}
|