diff options
| author | Jerop Kipruto <[email protected]> | 2025-06-12 16:48:10 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-12 20:48:10 +0000 |
| commit | 6723c72fa5468be713c05205c75be532729e8f92 (patch) | |
| tree | 2392b344fb942f1c452e9fca5b5b6d131a827805 /docs/core | |
| parent | f8863f4d00f23a3e29496535be6cf0bb80ee43e9 (diff) | |
telemetry: include user decisions in tool call logs (#966)
Add the user's decision (accept, reject, modify) to tool call telemetry to better understand user intent. The decision provides crucial context to the `success` metric, as a user can reject a call that would have succeeded or accept one that fails.
Also prettify the arguments json.
Example:

#750
Diffstat (limited to 'docs/core')
| -rw-r--r-- | docs/core/telemetry.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/core/telemetry.md b/docs/core/telemetry.md index e6498d3b..8d6468c6 100644 --- a/docs/core/telemetry.md +++ b/docs/core/telemetry.md @@ -288,6 +288,7 @@ These are timestamped records of specific events. - `function_args` - `duration_ms` - `success` (boolean) + - `decision` (string: "accept", "reject", or "modify", optional) - `error` (optional) - `error_type` (optional) @@ -332,11 +333,13 @@ These are numerical measurements of behavior over time. - **Attributes**: - `function_name` - `success` (boolean) + - `decision` (string: "accept", "reject", or "modify", optional) - `gemini_cli.tool.call.latency` (Histogram, ms): Measures tool call latency. - **Attributes**: - `function_name` + - `decision` (string: "accept", "reject", or "modify", optional) - `gemini_cli.api.request.count` (Counter, Int): Counts all API requests. |
