MCPcopy
hub / github.com/vercel/next.js / trace

Method trace

packages/next/src/server/lib/trace/tracer.ts:93–93  ·  view source on GitHub ↗

* Instruments a function by automatically creating a span activated on its * scope. * * The span will automatically be finished when one of these conditions is * met: * * * The function returns a promise, in which case the span will finish when * the promise is resolved or rejec

(
    type: SpanTypes,
    fn: (span?: Span, done?: (error?: Error) => any) => Promise<T>
  )

Source from the content-addressed store, hash-verified

91 *
92 */
93 trace<T>(
94 type: SpanTypes,
95 fn: (span?: Span, done?: (error?: Error) => any) => Promise<T>
96 ): Promise<T>

Callers 15

deprecatedFunction · 0.65
index.jsFile · 0.65
deprecatedFunction · 0.65
deprecatedFunction · 0.65
missingCallbackFunction · 0.65
deprecatedFunction · 0.65
index.jsFile · 0.65
deprecatedFunction · 0.65
loggerFunction · 0.65
getDefinedViewportFunction · 0.65
getDefinedMetadataFunction · 0.65

Implementers 1

NextTracerImplpackages/next/src/server/lib/trace/tra

Calls

no outgoing calls

Tested by 1

testForWorkerFunction · 0.52