mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-02 16:04:38 -07:00
add(telemetry): Add missing telemetry for UserPromptEvent (#6885)
Co-authored-by: Shnatu <snatu@google.com> Co-authored-by: Arya Gummadi <aryagummadi@google.com>
This commit is contained in:
@@ -122,8 +122,13 @@ export function logUserPrompt(config: Config, event: UserPromptEvent): void {
|
||||
'event.name': EVENT_USER_PROMPT,
|
||||
'event.timestamp': new Date().toISOString(),
|
||||
prompt_length: event.prompt_length,
|
||||
prompt_id: event.prompt_id,
|
||||
};
|
||||
|
||||
if (event.auth_type) {
|
||||
attributes['auth_type'] = event.auth_type;
|
||||
}
|
||||
|
||||
if (shouldLogUserPrompts(config)) {
|
||||
attributes['prompt'] = event.prompt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user