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

Function init

packages/nitro/src/sdk.ts:9–23  ·  view source on GitHub ↗
(options: NodeOptions | undefined = {})

Source from the content-addressed store, hash-verified

7 * Initializes the Nitro SDK
8 */
9export function init(options: NodeOptions | undefined = {}): NodeClient | undefined {
10 const opts: NodeOptions = {
11 ...options,
12 };
13
14 if (opts.defaultIntegrations === undefined) {
15 opts.defaultIntegrations = getDefaultIntegrations(opts);
16 }
17
18 applySdkMetadata(opts, 'nitro', ['nitro', 'node']);
19
20 const client = nodeInit(opts);
21
22 return client;
23}
24
25/**
26 * Get the default integrations for the Nitro SDK.

Callers

nothing calls this directly

Calls 2

getDefaultIntegrationsFunction · 0.90
applySdkMetadataFunction · 0.90

Tested by

no test coverage detected