codedb writes local telemetry to ~/.codedb/telemetry.ndjson unless CODEDB_NO_TELEMETRY=1 is set. The file is append-only and stays on disk until an operator syncs it.
The current on-disk format is compact:
tsortimestamp_msevorevent_typetool,ns/latency_ns,err/error,bytes/response_bytesfiles/file_count,lines/total_lines- optional
languages,index_size_bytes,startup_time_ms,version,platform
scripts/sync-telemetry.py normalizes those fields and loads them into Postgres with COPY.
Use docs/telemetry/postgres-schema.sql to create the destination table and indexes.
python3 scripts/sync-telemetry.py --dsn "$DATABASE_URL"For a preview without touching Postgres:
python3 scripts/sync-telemetry.py --dry-runThe sync path stores aggregate usage and performance data only. It does not capture file contents, file paths, or search queries.