MCPcopy Create free account
hub / github.com/Snapchat/Valdi / reportTelemetry

Function reportTelemetry

valdi/vscode_debugger/src/targets/node/bootloader.ts:138–146  ·  view source on GitHub ↗

* Adds process telemetry to the debugger file if necessary.

(env: BootloaderEnvironment)

Source from the content-addressed store, hash-verified

136 * Adds process telemetry to the debugger file if necessary.
137 */
138function reportTelemetry(env: BootloaderEnvironment) {
139 const callbackFile = env.inspectorOptions?.fileCallback;
140 if (!callbackFile) {
141 return;
142 }
143
144 fs.writeFileSync(callbackFile, JSON.stringify(telemetry));
145 env.updateInspectorOption('fileCallback', undefined);
146}

Callers 1

bootloader.tsFile · 0.70

Calls 2

writeFileSyncMethod · 0.80
updateInspectorOptionMethod · 0.45

Tested by

no test coverage detected