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

Function init

packages/astro/src/server/sdk.ts:9–26  ·  view source on GitHub ↗
(options: NodeOptions)

Source from the content-addressed store, hash-verified

7 * @param options
8 */
9export function init(options: NodeOptions): NodeClient | undefined {
10 const opts = {
11 ...options,
12 };
13
14 applySdkMetadata(opts, 'astro', ['astro', 'node']);
15
16 opts.ignoreSpans = [
17 ...(opts.ignoreSpans || []),
18 // For http.server spans that did not go though the astro middleware,
19 // we want to drop them
20 // this is the case with http.server spans of prerendered pages
21 // we do not care about those, as they are effectively static
22 { op: 'http.server', attributes: { 'sentry.origin': 'auto.http.otel.http' } },
23 ];
24
25 return initNodeSdk(opts);
26}

Callers

nothing calls this directly

Calls 1

applySdkMetadataFunction · 0.90

Tested by

no test coverage detected