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

Function init

packages/vue/src/sdk.ts:12–26  ·  view source on GitHub ↗
(options: Partial<Omit<Options, 'tracingOptions'>> = {})

Source from the content-addressed store, hash-verified

10 * Inits the Vue SDK
11 */
12export function init(options: Partial<Omit<Options, 'tracingOptions'>> = {}): Client | undefined {
13 const opts = {
14 defaultIntegrations: [...getDefaultIntegrations(options), vueIntegration()],
15 ...options,
16 };
17
18 applySdkMetadata(opts, 'vue');
19
20 const client = browserInit(opts);
21
22 // Add vue-specific stringification
23 setNormalizeStringifier(normalizeStringifyValue);
24
25 return client;
26}

Callers

nothing calls this directly

Calls 3

getDefaultIntegrationsFunction · 0.90
applySdkMetadataFunction · 0.85
setNormalizeStringifierFunction · 0.85

Tested by

no test coverage detected