diff options
| author | smhendrickson <[email protected]> | 2025-07-23 17:48:24 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-23 21:48:24 +0000 |
| commit | 9d3164621a8bb0e2bbf8d2309fba1d8678c0abe2 (patch) | |
| tree | 0a70a72e6735380b327ee883711c27b5345de65b /docs/telemetry.md | |
| parent | 209c8783b4f2cdc39e4ce1ac05b3416d32c373c5 (diff) | |
add `--telemetry-outfile` flag (#4689)
Diffstat (limited to 'docs/telemetry.md')
| -rw-r--r-- | docs/telemetry.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/telemetry.md b/docs/telemetry.md index 76958794..2209ee0b 100644 --- a/docs/telemetry.md +++ b/docs/telemetry.md @@ -19,6 +19,7 @@ The following lists the precedence for applying telemetry settings, with items l - `--telemetry-target <local|gcp>`: Overrides `telemetry.target`. - `--telemetry-otlp-endpoint <URL>`: Overrides `telemetry.otlpEndpoint`. - `--telemetry-log-prompts` / `--no-telemetry-log-prompts`: Overrides `telemetry.logPrompts`. + - `--telemetry-outfile <path>`: Redirects telemetry output to a file. See [Exporting to a file](#exporting-to-a-file). 1. **Environment variables:** - `OTEL_EXPORTER_OTLP_ENDPOINT`: Overrides `telemetry.otlpEndpoint`. @@ -50,6 +51,16 @@ The following code can be added to your workspace (`.gemini/settings.json`) or u } ``` +### Exporting to a file + +You can export all telemetry data to a file for local inspection. + +To enable file export, use the `--telemetry-outfile` flag with a path to your desired output file. This must be run using `--telemetry-target=local`. + +```bash +gemini --telemetry --telemetry-target=local --telemetry-outfile=/path/to/telemetry.log "your prompt" +``` + ## Running an OTEL Collector An OTEL Collector is a service that receives, processes, and exports telemetry data. |
