MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / trackCommandFailure

Function trackCommandFailure

packages/cli/src/telemetry/events.ts:345–354  ·  view source on GitHub ↗
(command: string, err: unknown)

Source from the content-addressed store, hash-verified

343// command failures are diagnosable. Enqueues synchronously — the process `exit`
344// handler flushes it. Drop this into any command's failure path.
345export function trackCommandFailure(command: string, err: unknown): void {
346 const error = err instanceof Error ? err : new Error(String(err));
347 trackCliError({
348 error_name: error.name,
349 error_message: error.message,
350 stack_trace: error.stack,
351 command,
352 kind: "command_error",
353 });
354}
355
356// Whisper being absent/uninstallable is an environment prerequisite gap, not a
357// command crash — track it on its own low-severity metric instead of cli_error

Callers 12

reportCommandFailureFunction · 0.85
resolveProjectFunction · 0.85
events.test.tsFile · 0.85
runFunction · 0.85
failWithFunction · 0.85
transcribeAudioFunction · 0.85
runEnsureFunction · 0.85
runPathFunction · 0.85
runFunction · 0.85
transcribe.test.tsFile · 0.85
runFunction · 0.85

Calls 1

trackCliErrorFunction · 0.85

Tested by

no test coverage detected