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

Function createNitroModule

packages/nitro/src/module.ts:9–17  ·  view source on GitHub ↗
(sentryOptions?: SentryNitroOptions, sentryEnabledSourcemaps?: boolean)

Source from the content-addressed store, hash-verified

7 * Creates a Nitro module to setup the Sentry SDK.
8 */
9export function createNitroModule(sentryOptions?: SentryNitroOptions, sentryEnabledSourcemaps?: boolean): NitroModule {
10 return {
11 name: 'sentry',
12 setup: nitro => {
13 instrumentServer(nitro);
14 setupSourceMaps(nitro, sentryOptions, sentryEnabledSourcemaps);
15 },
16 };
17}

Callers 1

setupSentryNitroModuleFunction · 0.90

Calls 2

instrumentServerFunction · 0.90
setupSourceMapsFunction · 0.90

Tested by

no test coverage detected