MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / init

Function init

packages/nestjs/src/sdk.ts:10–19  ·  view source on GitHub ↗
(options: NodeOptions | undefined = {})

Source from the content-addressed store, hash-verified

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

Callers 6

deno-serve.test.tsFile · 0.90
sdk.test.tsFile · 0.90
fnFunction · 0.90
deno-redis.test.tsFile · 0.90

Calls 2

getDefaultIntegrationsFunction · 0.90
applySdkMetadataFunction · 0.90

Tested by 1

fnFunction · 0.72