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

Method recordLifecycle

src/telemetry/index.ts:256–260  ·  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

254
255 /** install / index / uninstall — buffered like everything else. */
256 recordLifecycle(event: LifecycleEvent, props: Record<string, unknown>): void {
257 if (!this.isEnabled()) return;
258 this.events.push({ v: SCHEMA_VERSION, ev: event, ts: this.now().toISOString(), props });
259 this.ensureExitHook();
260 }
261
262 // ---------------------------------------------------------------- sending
263

Callers 5

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

Calls 2

isEnabledMethod · 0.95
ensureExitHookMethod · 0.95

Tested by

no test coverage detected