From 6b843ca3a81fa6cc98f3080d1686a367cd7679c0 Mon Sep 17 00:00:00 2001 From: agarwalravikant Date: Wed, 20 Aug 2025 19:52:22 +0530 Subject: Changes to add MCP tool count, and MCP tool name as dimension (#6631) Co-authored-by: Ravikant Agarwal Co-authored-by: Bryan Morgan --- packages/core/src/config/config.test.ts | 5 +++-- packages/core/src/config/config.ts | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/core/src/config') diff --git a/packages/core/src/config/config.test.ts b/packages/core/src/config/config.test.ts index 3fb71ae8..91f91729 100644 --- a/packages/core/src/config/config.test.ts +++ b/packages/core/src/config/config.test.ts @@ -488,11 +488,12 @@ describe('Server Config (config.ts)', () => { }, ); - it('logs the session start event', () => { - new Config({ + it('logs the session start event', async () => { + const config = new Config({ ...baseParams, usageStatisticsEnabled: true, }); + await config.initialize(); expect( ClearcutLogger.prototype.logStartSessionEvent, diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index 39e885e2..349a0f83 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -346,8 +346,6 @@ export class Config { if (this.telemetrySettings.enabled) { initializeTelemetry(this); } - - logCliConfiguration(this, new StartSessionEvent(this)); } /** @@ -365,6 +363,7 @@ export class Config { } this.promptRegistry = new PromptRegistry(); this.toolRegistry = await this.createToolRegistry(); + logCliConfiguration(this, new StartSessionEvent(this, this.toolRegistry)); } async refreshAuth(authMethod: AuthType) { -- cgit v1.2.3