diff options
| author | jerop <[email protected]> | 2025-06-11 17:47:21 +0000 |
|---|---|---|
| committer | Jerop Kipruto <[email protected]> | 2025-06-11 14:18:16 -0400 |
| commit | 03bc1f314121c381ac4fe19f031fe90fbcf95179 (patch) | |
| tree | 11ba8311ff2394b0c70adafc85760cde6db444e8 /docs/core/telemetry.md | |
| parent | 9237e95f113d0114ec492d6ed852d01b2c9d4d24 (diff) | |
feat(telemetry): Update API response in telemetry
Adds the text content of the API response to the telemetry event. This provides more context for debugging and analysis without logging the entire, potentially large, response object.
- Adds an optional field to the type.
- Updates to include the field in the logged attributes.
- Modifies the to extract the response text using and pass it to the logger.
- Adds a new test file for the telemetry loggers, including tests for the function to verify the new functionality.
Diffstat (limited to 'docs/core/telemetry.md')
| -rw-r--r-- | docs/core/telemetry.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/core/telemetry.md b/docs/core/telemetry.md index aec63e80..e7b82b65 100644 --- a/docs/core/telemetry.md +++ b/docs/core/telemetry.md @@ -291,7 +291,7 @@ These are timestamped records of specific events. - **Attributes**: - `model` - `duration_ms` - - `prompt_token_count` + - `input_token_count` - `gemini_cli.api_error`: Fired if the API request fails. @@ -310,6 +310,11 @@ These are timestamped records of specific events. - `duration_ms` - `error` (optional) - `attempt` + - `output_token_count` + - `cached_content_token_count` + - `thoughts_token_count` + - `tool_token_count` + - `response_text` (optional) ### Metrics |
