diff options
| author | Billy Biggs <[email protected]> | 2025-08-18 13:03:03 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-18 20:03:03 +0000 |
| commit | 91cd0db2b3e99f5829dbb6d09696333e9198cc9d (patch) | |
| tree | 96f833fbfbeb0929d0641f5f609775b48322081d /packages/core/src | |
| parent | 71f706cf29cf70a888ee65117b21ad31042207f8 (diff) | |
Log start session event through telemetry/loggers (#6431)
Diffstat (limited to 'packages/core/src')
| -rw-r--r-- | packages/core/src/config/config.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index acaf5eb1..16485bc4 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -43,12 +43,11 @@ import { DEFAULT_GEMINI_EMBEDDING_MODEL, DEFAULT_GEMINI_FLASH_MODEL, } from './models.js'; -import { ClearcutLogger } from '../telemetry/clearcut-logger/clearcut-logger.js'; import { shouldAttemptBrowserLaunch } from '../utils/browser.js'; import { MCPOAuthConfig } from '../mcp/oauth-provider.js'; import { IdeClient } from '../ide/ide-client.js'; import type { Content } from '@google/genai'; -import { logIdeConnection } from '../telemetry/loggers.js'; +import { logCliConfiguration, logIdeConnection } from '../telemetry/loggers.js'; import { IdeConnectionEvent, IdeConnectionType } from '../telemetry/types.js'; // Re-export OAuth config type @@ -338,11 +337,9 @@ export class Config { initializeTelemetry(this); } + logCliConfiguration(this, new StartSessionEvent(this)); + if (this.getUsageStatisticsEnabled()) { - ClearcutLogger.getInstance(this)?.logStartSessionEvent( - new StartSessionEvent(this), - ); - } else { console.log('Data collection is disabled.'); } } |
