MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / trackCrash

Function trackCrash

packages/telemetry/src/crash.ts:25–36  ·  view source on GitHub ↗
(errorType: string, source: string)

Source from the content-addressed store, hash-verified

23 };
24 }
25 const trackCrash = (errorType: string, source: string) => {
26 try {
27 client.track('crash', {
28 error_type: errorType,
29 where: phase,
30 source,
31 });
32 client.flushSync();
33 } catch {
34 // Crash telemetry must never mask the original exception.
35 }
36 };
37 installedUncaughtHandler = (error, origin) => {
38 if (isAbortError(error)) return;
39 trackCrash(error.name || error.constructor.name, origin);

Callers 1

Calls 2

trackMethod · 0.65
flushSyncMethod · 0.65

Tested by

no test coverage detected