Appearance
Codex CLI
OpenAI's Codex CLI has native OpenTelemetry support.
Automatic Setup
bash
flowstate-telemetry install --tool codex-cliThis configures the [otel] section in ~/.codex/config.toml.
Manual Setup
Add the following to ~/.codex/config.toml:
toml
[otel]
endpoint = "https://otel.flowstate.inc"
api_key = "YOUR_TELEMETRY_KEY"To enable prompt capture, add:
toml
[otel]
endpoint = "https://otel.flowstate.inc"
api_key = "YOUR_TELEMETRY_KEY"
log_user_prompt = trueWhat Gets Captured
| Event | Data Collected |
|---|---|
| Prompts | Prompt text (if log_user_prompt 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 orlog_user_prompt = true)