Changes to add MCP tool count, and MCP tool name as dimension (#6631)

Co-authored-by: Ravikant Agarwal <ravikantag@google.com>
Co-authored-by: Bryan Morgan <bryanmorgan@google.com>
This commit is contained in:
agarwalravikant
2025-08-20 19:52:22 +05:30
committed by GitHub
parent a773d0887c
commit 6b843ca3a8
7 changed files with 51 additions and 5 deletions

View File

@@ -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,

View File

@@ -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) {