MCPcopy
hub / github.com/claude-code-best/claude-code / logSessionTelemetry

Function logSessionTelemetry

src/main.tsx:424–434  ·  view source on GitHub ↗

* Per-session skill/plugin telemetry. Called from both the interactive path * and the headless -p path (before runHeadless) — both go through * main.tsx but branch before the interactive startup path, so it needs two * call sites here rather than one here + one in QueryEngine.

()

Source from the content-addressed store, hash-verified

422 * call sites here rather than one here + one in QueryEngine.
423 */
424function logSessionTelemetry(): void {
425 const model = parseUserSpecifiedModel(getInitialMainLoopModel() ?? getDefaultMainLoopModel());
426 void logSkillsLoaded(getCwd(), getContextWindowForModel(model, getSdkBetas()));
427 void loadAllPluginsCacheOnly()
428 .then(({ enabled, errors }) => {
429 const managedNames = getManagedPluginNames();
430 logPluginsEnabledForSession(enabled, managedNames, getPluginSeedDirs());
431 logPluginLoadErrors(errors, managedNames);
432 })
433 .catch(err => logError(err));
434}
435
436function getCertEnvVarTelemetry(): Record<string, boolean> {
437 const result: Record<string, boolean> = {};

Callers 1

runFunction · 0.85

Calls 12

parseUserSpecifiedModelFunction · 0.85
getInitialMainLoopModelFunction · 0.85
getDefaultMainLoopModelFunction · 0.85
logSkillsLoadedFunction · 0.85
getCwdFunction · 0.85
getContextWindowForModelFunction · 0.85
getSdkBetasFunction · 0.85
getManagedPluginNamesFunction · 0.85
getPluginSeedDirsFunction · 0.85
logPluginLoadErrorsFunction · 0.85
logErrorFunction · 0.50

Tested by

no test coverage detected