MCPcopy
hub / github.com/vitest-dev/vitest / recordInitSpan

Method recordInitSpan

packages/vitest/src/utils/traces.ts:103–111  ·  view source on GitHub ↗

* @internal

(context: Context)

Source from the content-addressed store, hash-verified

101 * @internal
102 */
103 recordInitSpan(context: Context): void {
104 if (this.#initRecorded) {
105 return
106 }
107 this.#initRecorded = true
108 this
109 .startSpan('vitest.runtime.traces', { startTime: this.#initStartTime }, context)
110 .end(this.#initEndTime)
111 }
112
113 /**
114 * @internal

Callers 3

createTestersMethod · 0.80
tester.tsFile · 0.80
onMessageFunction · 0.80

Calls 2

startSpanMethod · 0.95
endMethod · 0.80

Tested by

no test coverage detected