Appearance
Gemini CLI
Gemini CLI has native OpenTelemetry support.
Automatic Setup
bash
flowstate-telemetry install --tool gemini-cliThis configures telemetry in ~/.gemini/settings.json.
Manual Setup
Add the following to ~/.gemini/settings.json:
json
{
"telemetry": {
"endpoint": "https://otel.flowstate.inc",
"apiKey": "YOUR_TELEMETRY_KEY"
}
}To enable prompt capture, add "logPrompts": true to the telemetry block.
What Gets Captured
| Event | Data Collected |
|---|---|
| Prompts | Prompt text (if logPrompts enabled), session ID |
| API requests | Model, input/output tokens, cost, duration |
| Tool results | Tool name, success/failure |
| File operations | Files modified, lines changed |
Limitations
- Prompt capture is opt-in (
--promptsflag orlogPrompts: true) - Token counts depend on Gemini API response format