mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 09:17:53 +00:00
chore(cli/slashcommands): Add status enum to SlashCommandEvent telemetry (#6023)
This commit is contained in:
@@ -637,6 +637,13 @@ export class ClearcutLogger {
|
||||
});
|
||||
}
|
||||
|
||||
if (event.status) {
|
||||
data.push({
|
||||
gemini_cli_key: EventMetadataKey.GEMINI_CLI_SLASH_COMMAND_STATUS,
|
||||
value: JSON.stringify(event.status),
|
||||
});
|
||||
}
|
||||
|
||||
this.enqueueLogEvent(this.createLogEvent(slash_command_event_name, data));
|
||||
this.flushIfNeeded();
|
||||
}
|
||||
|
||||
@@ -174,6 +174,9 @@ export enum EventMetadataKey {
|
||||
// Logs the subcommand of the slash command.
|
||||
GEMINI_CLI_SLASH_COMMAND_SUBCOMMAND = 42,
|
||||
|
||||
// Logs the status of the slash command (e.g. 'success', 'error')
|
||||
GEMINI_CLI_SLASH_COMMAND_STATUS = 51,
|
||||
|
||||
// ==========================================================================
|
||||
// Next Speaker Check Event Keys
|
||||
// ===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user