MCPcopy Create free account
hub / github.com/vercel/vercel / trace

Method trace

packages/build-utils/src/trace/trace.ts:116–122  ·  view source on GitHub ↗
(fn: (span: Span) => T | Promise<T>)

Source from the content-addressed store, hash-verified

114 }
115
116 async trace<T>(fn: (span: Span) => T | Promise<T>): Promise<T> {
117 try {
118 return await fn(this);
119 } finally {
120 this.stop();
121 }
122 }
123}

Callers 13

withSpanFunction · 0.45
buildFunction · 0.45
maybeLogFunction · 0.45
mainFunction · 0.45
buildFunction · 0.45
typescriptFunction · 0.45
rolldownFunction · 0.45
nodeFileTraceFunction · 0.45
rolldownFunction · 0.45
nftFunction · 0.45
introspectionFunction · 0.45

Calls 1

stopMethod · 0.95

Tested by

no test coverage detected