MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / init

Function init

packages/angular/src/sdk.ts:55–65  ·  view source on GitHub ↗
(options: BrowserOptions)

Source from the content-addressed store, hash-verified

53 * Inits the Angular SDK
54 */
55export function init(options: BrowserOptions): Client | undefined {
56 const opts = {
57 defaultIntegrations: getDefaultIntegrations(),
58 ...options,
59 };
60
61 applySdkMetadata(opts, 'angular');
62
63 checkAndSetAngularVersion();
64 return browserInit(opts);
65}
66
67function checkAndSetAngularVersion(): void {
68 const ANGULAR_MINIMUM_VERSION = 14;

Callers 1

sdk.test.tsFile · 0.90

Calls 3

applySdkMetadataFunction · 0.90
getDefaultIntegrationsFunction · 0.70

Tested by

no test coverage detected