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

Function logSessionTelemetry

src/main.tsx:279–290  ·  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

277 * call sites here rather than one here + one in QueryEngine.
278 */
279function logSessionTelemetry(): void {
280 const model = parseUserSpecifiedModel(getInitialMainLoopModel() ?? getDefaultMainLoopModel());
281 void logSkillsLoaded(getCwd(), getContextWindowForModel(model, getSdkBetas()));
282 void loadAllPluginsCacheOnly().then(({
283 enabled,
284 errors
285 }) => {
286 const managedNames = getManagedPluginNames();
287 logPluginsEnabledForSession(enabled, managedNames, getPluginSeedDirs());
288 logPluginLoadErrors(errors, managedNames);
289 }).catch(err => logError(err));
290}
291function getCertEnvVarTelemetry(): Record<string, boolean> {
292 const result: Record<string, boolean> = {};
293 if (process.env.NODE_EXTRA_CA_CERTS) {

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