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

Method onSpanEnd

packages/next/src/client/tracing/tracer.ts:70–75  ·  view source on GitHub ↗
(cb: (span: ISpan) => void)

Source from the content-addressed store, hash-verified

68 }
69
70 onSpanEnd(cb: (span: ISpan) => void): () => void {
71 this._emitter.on('spanend', cb)
72 return () => {
73 this._emitter.off('spanend', cb)
74 }
75 }
76}
77
78export type { ISpan as Span }

Callers 2

initializeFunction · 0.80
endMethod · 0.80

Calls 2

onMethod · 0.45
offMethod · 0.45

Tested by

no test coverage detected