fix(metrics): Do not convert numerical metrics to strings (#6701)

Co-authored-by: Shnatu <snatu@google.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Bryan Morgan <bryanmorgan@google.com>
Co-authored-by: Arya Gummadi <aryagummadi@google.com>
This commit is contained in:
Shardul Natu
2025-08-21 00:25:42 -07:00
committed by GitHub
parent f8f79bf2f7
commit 0242ecd83a
3 changed files with 9 additions and 9 deletions

View File

@@ -385,12 +385,14 @@ export class ClearcutLogger {
{
gemini_cli_key:
EventMetadataKey.GEMINI_CLI_START_SESSION_MCP_SERVERS_COUNT,
value: event.mcp_servers_count ? event.mcp_servers_count : '',
value: event.mcp_servers_count
? event.mcp_servers_count.toString()
: '',
},
{
gemini_cli_key:
EventMetadataKey.GEMINI_CLI_START_SESSION_MCP_TOOLS_COUNT,
value: event.mcp_tools_count ? event.mcp_tools_count : '',
value: event.mcp_tools_count?.toString() ?? '',
},
{
gemini_cli_key: EventMetadataKey.GEMINI_CLI_START_SESSION_MCP_TOOLS,