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

Function getIgnoreSpans

packages/nextjs/test/serverSdk.test.ts:121–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119
120 describe('ignoreSpans', () => {
121 function getIgnoreSpans(): NonNullable<SentryNode.NodeOptions['ignoreSpans']> {
122 const callArgs = nodeInit.mock.calls[0]?.[0] as SentryNode.NodeOptions;
123 return callArgs.ignoreSpans ?? [];
124 }
125
126 function regexSources(patterns: NonNullable<SentryNode.NodeOptions['ignoreSpans']>): string[] {
127 return patterns.filter((p): p is RegExp => p instanceof RegExp).map(p => p.source);

Callers 1

serverSdk.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected