diff --git a/docs/cli/configuration.md b/docs/cli/configuration.md index 79eda825..3ce29312 100644 --- a/docs/cli/configuration.md +++ b/docs/cli/configuration.md @@ -161,6 +161,24 @@ In addition to a project settings file, a project's `.gemini` directory can cont - **Default:** `vscode` - **Example:** `"preferredEditor": "vscode"` +- **`telemetry`** (object) + - **Description:** Configures logging and metrics collection for Gemini CLI. For more information, see [Telemetry](../core/telemetry.md). + - **Default:** `{"enabled": false, "target": "local", "otlpEndpoint": "http://localhost:4317", "logPrompts": true}` + - **Properties:** + - **`enabled`** (boolean): Whether or not telemtery is enabled. + - **`target`** (string): The destination for collected telemetry. Supported values are `local` and `gcp`. + - **`otlpEndpoint`** (string): The endpoint for the OTLP Exporter. + - **`logPrompts`** (boolean): Whether or not to include the content of user prompts in the logs. + - **Example:** + ```json + "telemetry": { + "enabled": true, + "target": "local", + "otlpEndpoint": "http://localhost:16686", + "logPrompts": false + } + ``` + ### Example `settings.json`: ```json