summaryrefslogtreecommitdiff
path: root/packages/core/src/config
diff options
context:
space:
mode:
authoragarwalravikant <[email protected]>2025-08-20 19:52:22 +0530
committerGitHub <[email protected]>2025-08-20 14:22:22 +0000
commit6b843ca3a81fa6cc98f3080d1686a367cd7679c0 (patch)
tree48a359e85d563d252e5a509a36d73847dc585a98 /packages/core/src/config
parenta773d0887cf05c6b01bd3340bf8d424feddaa0e8 (diff)
Changes to add MCP tool count, and MCP tool name as dimension (#6631)
Co-authored-by: Ravikant Agarwal <[email protected]> Co-authored-by: Bryan Morgan <[email protected]>
Diffstat (limited to 'packages/core/src/config')
-rw-r--r--packages/core/src/config/config.test.ts5
-rw-r--r--packages/core/src/config/config.ts3
2 files changed, 4 insertions, 4 deletions
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) {