summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/core/telemetry.md28
-rw-r--r--packages/core/src/telemetry/constants.ts24
2 files changed, 26 insertions, 26 deletions
diff --git a/docs/core/telemetry.md b/docs/core/telemetry.md
index 5bd0df74..ed1dbeaf 100644
--- a/docs/core/telemetry.md
+++ b/docs/core/telemetry.md
@@ -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`
diff --git a/packages/core/src/telemetry/constants.ts b/packages/core/src/telemetry/constants.ts
index 97bdaa8c..7b4aad49 100644
--- a/packages/core/src/telemetry/constants.ts
+++ b/packages/core/src/telemetry/constants.ts
@@ -6,16 +6,16 @@
export const SERVICE_NAME = 'gemini-cli';
-export const EVENT_USER_PROMPT = 'gemini_code.user_prompt';
-export const EVENT_TOOL_CALL = 'gemini_code.tool_call';
-export const EVENT_API_REQUEST = 'gemini_code.api_request';
-export const EVENT_API_ERROR = 'gemini_code.api_error';
-export const EVENT_API_RESPONSE = 'gemini_code.api_response';
-export const EVENT_CLI_CONFIG = 'gemini_code.config';
+export const EVENT_USER_PROMPT = 'gemini_cli.user_prompt';
+export const EVENT_TOOL_CALL = 'gemini_cli.tool_call';
+export const EVENT_API_REQUEST = 'gemini_cli.api_request';
+export const EVENT_API_ERROR = 'gemini_cli.api_error';
+export const EVENT_API_RESPONSE = 'gemini_cli.api_response';
+export const EVENT_CLI_CONFIG = 'gemini_cli.config';
-export const METRIC_TOOL_CALL_COUNT = 'gemini_code.tool.call.count';
-export const METRIC_TOOL_CALL_LATENCY = 'gemini_code.tool.call.latency';
-export const METRIC_API_REQUEST_COUNT = 'gemini_code.api.request.count';
-export const METRIC_API_REQUEST_LATENCY = 'gemini_code.api.request.latency';
-export const METRIC_TOKEN_INPUT_COUNT = 'gemini_code.token.input.count';
-export const METRIC_SESSION_COUNT = 'gemini_code.session.count';
+export const METRIC_TOOL_CALL_COUNT = 'gemini_cli.tool.call.count';
+export const METRIC_TOOL_CALL_LATENCY = 'gemini_cli.tool.call.latency';
+export const METRIC_API_REQUEST_COUNT = 'gemini_cli.api.request.count';
+export const METRIC_API_REQUEST_LATENCY = 'gemini_cli.api.request.latency';
+export const METRIC_TOKEN_INPUT_COUNT = 'gemini_cli.token.input.count';
+export const METRIC_SESSION_COUNT = 'gemini_cli.session.count';