mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Log Gemini CLI OS / Process platform in the clearcut (#7086)
This commit is contained in:
@@ -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,
|
||||||
|
},
|
||||||
]),
|
]),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user