summaryrefslogtreecommitdiff
path: root/docs/core/telemetry.md
diff options
context:
space:
mode:
authorJerop Kipruto <[email protected]>2025-06-12 19:36:51 -0400
committerGitHub <[email protected]>2025-06-12 16:36:51 -0700
commit3c3da655b0fd4dafce7a642c4112e2375e3fa02f (patch)
tree7c014a30afb9b72034e0fd8e2118d6c05a78348d /docs/core/telemetry.md
parentdc378e8d604030d934959cceefed4aef5a1ea6b0 (diff)
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
Diffstat (limited to 'docs/core/telemetry.md')
-rw-r--r--docs/core/telemetry.md5
1 files changed, 2 insertions, 3 deletions
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`