Logs the auth type in the user prompts, api responses and errors (#3795)

This commit is contained in:
uttamkanodia14
2025-07-11 22:17:46 +05:30
committed by GitHub
parent ed00612cf7
commit 93284281de
9 changed files with 65 additions and 4 deletions

View File

@@ -154,6 +154,7 @@ Logs are timestamped records of specific events. The following events are logged
- **Attributes**:
- `prompt_length`
- `prompt` (this attribute is excluded if `log_prompts_enabled` is configured to be `false`)
- `auth_type`
- `gemini_cli.tool_call`: This event occurs for each function call.
- **Attributes**:
@@ -177,6 +178,7 @@ Logs are timestamped records of specific events. The following events are logged
- `error_type`
- `status_code`
- `duration_ms`
- `auth_type`
- `gemini_cli.api_response`: This event occurs upon receiving a response from Gemini API.
- **Attributes**:
@@ -190,6 +192,7 @@ Logs are timestamped records of specific events. The following events are logged
- `thoughts_token_count`
- `tool_token_count`
- `response_text` (if applicable)
- `auth_type`
### Metrics