MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / recordLifecycle

Method recordLifecycle

src/telemetry/index.ts:314–318  ·  view source on GitHub ↗

install / index / uninstall — buffered like everything else.

(event: LifecycleEvent, props: Record<string, unknown>)

Source from the content-addressed store, hash-verified

312
313 /** install / index / uninstall — buffered like everything else. */
314 recordLifecycle(event: LifecycleEvent, props: Record<string, unknown>): void {
315 if (!this.isEnabled()) return;
316 this.events.push({ v: SCHEMA_VERSION, ev: event, ts: this.now().toISOString(), props });
317 this.ensureExitHook();
318 }
319
320 // ---------------------------------------------------------------- sending
321

Callers 6

recordIndexEventFunction · 0.80
runInstallerWithOptionsFunction · 0.80
runUninstallerFunction · 0.80
mainFunction · 0.80
telemetry.test.tsFile · 0.80

Calls 3

isEnabledMethod · 0.95
ensureExitHookMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected