From 3c3da655b0fd4dafce7a642c4112e2375e3fa02f Mon Sep 17 00:00:00 2001 From: Jerop Kipruto Date: Thu, 12 Jun 2025 19:36:51 -0400 Subject: Refactor OTEL logging for API calls (#991) Refactor OpenTelemetry logging for API requests, responses, and errors. Moved logging responsibility from GeminiClient to GeminiChat for more detailed logging. #750 --- docs/core/telemetry.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'docs/core') diff --git a/docs/core/telemetry.md b/docs/core/telemetry.md index 8d6468c6..41bd9fb7 100644 --- a/docs/core/telemetry.md +++ b/docs/core/telemetry.md @@ -296,8 +296,8 @@ These are timestamped records of specific events. - **Attributes**: - `model` - - `duration_ms` - `input_token_count` + - `request_text` (optional) - `gemini_cli.api_error`: Fired if the API request fails. @@ -307,7 +307,6 @@ These are timestamped records of specific events. - `error_type` - `status_code` - `duration_ms` - - `attempt` - `gemini_cli.api_response`: Fired upon receiving a response from the Gemini API. - **Attributes**: @@ -315,7 +314,7 @@ These are timestamped records of specific events. - `status_code` - `duration_ms` - `error` (optional) - - `attempt` + - `input_token_count` - `output_token_count` - `cached_content_token_count` - `thoughts_token_count` -- cgit v1.2.3