Log Gemini CLI OS / Process platform in the clearcut (#7086)

This commit is contained in:
uttamkanodia14
2025-08-27 12:59:43 +05:30
committed by GitHub
parent 59cdf5933f
commit c7fc489005
3 changed files with 11 additions and 0 deletions

View File

@@ -254,6 +254,10 @@ describe('ClearcutLogger', () => {
gemini_cli_key: EventMetadataKey.GEMINI_CLI_PROMPT_ID, gemini_cli_key: EventMetadataKey.GEMINI_CLI_PROMPT_ID,
value: prompt_id, value: prompt_id,
}, },
{
gemini_cli_key: EventMetadataKey.GEMINI_CLI_OS,
value: process.platform,
},
]), ]),
); );
}); });

View File

@@ -885,6 +885,10 @@ export class ClearcutLogger {
gemini_cli_key: EventMetadataKey.GEMINI_CLI_PROMPT_ID, gemini_cli_key: EventMetadataKey.GEMINI_CLI_PROMPT_ID,
value: this.promptId, value: this.promptId,
}, },
{
gemini_cli_key: EventMetadataKey.GEMINI_CLI_OS,
value: process.platform,
},
]; ];
return [...data, ...defaultLogMetadata]; return [...data, ...defaultLogMetadata];
} }

View File

@@ -163,6 +163,9 @@ export enum EventMetadataKey {
// Logs the Gemini CLI Git commit hash // Logs the Gemini CLI Git commit hash
GEMINI_CLI_GIT_COMMIT_HASH = 55, GEMINI_CLI_GIT_COMMIT_HASH = 55,
// Logs the Gemini CLI OS
GEMINI_CLI_OS = 82,
// ========================================================================== // ==========================================================================
// Loop Detected Event Keys // Loop Detected Event Keys
// =========================================================================== // ===========================================================================