update from metrics and logs prefix from gemini_code to gemini_cli

This commit is contained in:
jerop
2025-06-11 05:22:13 +00:00
committed by Jerop Kipruto
parent d1e23b7c71
commit 3f5ac384cc
2 changed files with 26 additions and 26 deletions

View File

@@ -171,9 +171,9 @@ exporters:
googlecloud:
project: "${GOOGLE_CLOUD_PROJECT}"
metric:
prefix: "custom.googleapis.com/gemini_code"
prefix: "custom.googleapis.com/gemini_cli"
log:
default_log_name: "gemini_code"
default_log_name: "gemini_cli"
debug:
verbosity: detailed
@@ -256,7 +256,7 @@ Use this method if you prefer not to use Docker.
These are timestamped records of specific events.
- `gemini_code.config`: Fired once at startup with the CLI's configuration.
- `gemini_cli.config`: Fired once at startup with the CLI's configuration.
- **Attributes**:
- `model` (string)
@@ -268,13 +268,13 @@ These are timestamped records of specific events.
- `file_filtering_respect_git_ignore` (boolean)
- `file_filtering_allow_build_artifacts` (boolean)
- `gemini_code.user_prompt`: Fired when a user submits a prompt.
- `gemini_cli.user_prompt`: Fired when a user submits a prompt.
- **Attributes**:
- `prompt_char_count`
- `prompt` (except if `log_user_prompts_enabled` is false)
- `gemini_code.tool_call`: Fired for every function call.
- `gemini_cli.tool_call`: Fired for every function call.
- **Attributes**:
- `function_name`
@@ -284,14 +284,14 @@ These are timestamped records of specific events.
- `error` (optional)
- `error_type` (optional)
- `gemini_code.api_request`: Fired when making a request to the Gemini API.
- `gemini_cli.api_request`: Fired when making a request to the Gemini API.
- **Attributes**:
- `model`
- `duration_ms`
- `prompt_token_count`
- `gemini_code.api_error`: Fired if the API request fails.
- `gemini_cli.api_error`: Fired if the API request fails.
- **Attributes**:
- `model`
@@ -301,7 +301,7 @@ These are timestamped records of specific events.
- `duration_ms`
- `attempt`
- `gemini_code.api_response`: Fired upon receiving a response from the Gemini API.
- `gemini_cli.api_response`: Fired upon receiving a response from the Gemini API.
- **Attributes**:
- `model`
- `status_code`
@@ -313,31 +313,31 @@ These are timestamped records of specific events.
These are numerical measurements of behavior over time.
- `gemini_code.session.count` (Counter, Int): Incremented once per CLI startup.
- `gemini_cli.session.count` (Counter, Int): Incremented once per CLI startup.
- `gemini_code.tool.call.count` (Counter, Int): Counts tool calls.
- `gemini_cli.tool.call.count` (Counter, Int): Counts tool calls.
- **Attributes**:
- `function_name`
- `success` (boolean)
- `gemini_code.tool.call.latency` (Histogram, ms): Measures tool call latency.
- `gemini_cli.tool.call.latency` (Histogram, ms): Measures tool call latency.
- **Attributes**:
- `function_name`
- `gemini_code.api.request.count` (Counter, Int): Counts all API requests.
- `gemini_cli.api.request.count` (Counter, Int): Counts all API requests.
- **Attributes**:
- `model`
- `status_code`
- `error_type` (optional)
- `gemini_code.api.request.latency` (Histogram, ms): Measures API request latency.
- `gemini_cli.api.request.latency` (Histogram, ms): Measures API request latency.
- **Attributes**:
- `model`
- `gemini_code.token.input.count` (Counter, Int): Counts the total number of input tokens sent to the API.
- `gemini_cli.token.input.count` (Counter, Int): Counts the total number of input tokens sent to the API.
- **Attributes**:
- `model`