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

Function init

packages/remix/src/server/sdk.ts:25–41  ·  view source on GitHub ↗
(options: RemixOptions)

Source from the content-addressed store, hash-verified

23
24/** Initializes Sentry Remix SDK on Node. */
25export function init(options: RemixOptions): NodeClient | undefined {
26 applySdkMetadata(options, 'remix', ['remix', 'node']);
27
28 if (isInitialized()) {
29 DEBUG_BUILD && debug.log('SDK already initialized');
30
31 return;
32 }
33
34 options.defaultIntegrations = getRemixDefaultIntegrations(options as NodeOptions);
35
36 const client = nodeInit(options as NodeOptions);
37
38 instrumentServer();
39
40 return client;
41}

Callers 1

Calls 5

applySdkMetadataFunction · 0.90
instrumentServerFunction · 0.90
isInitializedFunction · 0.85
logMethod · 0.65

Tested by

no test coverage detected