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

Function startSpan

packages/nextjs/src/common/utils/nextSpan.ts:43–49  ·  view source on GitHub ↗
(options: StartSpanOptions, callback: (span: Span) => T)

Source from the content-addressed store, hash-verified

41 * @returns The return value of the callback
42 */
43export function startSpan<T>(options: StartSpanOptions, callback: (span: Span) => T): T {
44 if (shouldNoopSpan(callback)) {
45 return callback(createNonRecordingSpan());
46 }
47
48 return coreStartSpan(options, callback);
49}
50
51/**
52 *

Callers 4

fnFunction · 0.90
deno-redis.test.tsFile · 0.90

Calls 3

shouldNoopSpanFunction · 0.85
createNonRecordingSpanFunction · 0.85
callbackFunction · 0.50

Tested by 1

fnFunction · 0.72