(options: NodeOptions)
| 7 | * @param options |
| 8 | */ |
| 9 | export 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 | } |
nothing calls this directly
no test coverage detected