diff options
| author | Jerop Kipruto <[email protected]> | 2025-08-08 10:17:19 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-08 01:17:19 +0000 |
| commit | e50d886ba86b4d6ad33ad4d9cff4f78802908451 (patch) | |
| tree | d840d574a7b218f07cd447d25e930e5a37e162ef /docs/telemetry.md | |
| parent | e8815ba43c8d87f3b4393b2f30f319d5f79cb84f (diff) | |
docs: Improve local telemetry example (#5818)
Diffstat (limited to 'docs/telemetry.md')
| -rw-r--r-- | docs/telemetry.md | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/telemetry.md b/docs/telemetry.md index c7b88ba9..16bff27b 100644 --- a/docs/telemetry.md +++ b/docs/telemetry.md @@ -58,7 +58,17 @@ 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" +# Set your desired output file path +TELEMETRY_FILE=".gemini/telemetry.log" + +# Run Gemini CLI with local telemetry +# NOTE: --telemetry-otlp-endpoint="" is required to override the default +# OTLP exporter and ensure telemetry is written to the local file. +gemini --telemetry \ + --telemetry-target=local \ + --telemetry-otlp-endpoint="" \ + --telemetry-outfile="$TELEMETRY_FILE" \ + --prompt "What is OpenTelemetry?" ``` ## Running an OTEL Collector |
