| 1 | usage: valley telemetry [--remote <remote>] [--json] <operation> [flags] |
| 2 | |
| 3 | sources every source the host declares, and its state: |
| 4 | disabled, unavailable, failed, stale, active or |
| 5 | idle, with its units, its records and how far its |
| 6 | journal reaches |
| 7 | snapshot sources, with each producer's exported state and |
| 8 | its open and latest runs |
| 9 | read [--source <name>] [--since <cursor>] [--limit <n>] [--logs] |
| 10 | records after the cursor (default: the newest |
| 11 | --limit, 200, at most 1000); a source's systemd |
| 12 | lifecycle from the journal; with --logs, its own |
| 13 | output and the tail of its build logs, marked |
| 14 | untrusted |
| 15 | follow [--source <name>] [--since <cursor>] [--seconds <n>] [--logs] |
| 16 | records as they are stored, and with --logs build |
| 17 | output as it is written, for --seconds (default |
| 18 | 60, at most 300); ends with a cursor to resume |
| 19 | from. without --source, every stream at once |
| 20 | flush send this workstation's spooled records now |
| 21 | |
| 22 | Reading needs a key whose principal holds the host's observe grant. A |
| 23 | principal may have four follows and five bounded requests (sources, |
| 24 | snapshot, read) open on a host at once; one more of a kind is refused |
| 25 | until one ends. The remote is the checkout's valley.telemetry.remote, else |
| 26 | origin, or the one --remote names (a remote, an ssh URL, or |
| 27 | user@host:path); its URL is read and never run. --json prints the |
| 28 | valley-telemetry/v1 answer lines as they come. A gap, a cut-short answer or |
| 29 | an error is said; an answer that does not end exits 1. |
| 30 | |
| 31 | With `git config valley.telemetry true`, every valley command records a |
| 32 | command record: its verb (and knot's or telemetry's subverb), the names of |
| 33 | the flags it was given, its project, its exit status and its wall time, |
| 34 | and for pending and status the milliseconds and processes each phase took. |
| 35 | It never records an argument's value, a path, a title or a body. Every |
| 36 | approval attempt, from approve or from review, also records its steps and |
| 37 | its checks' progress. Records go to an owner-only spool for the |
| 38 | destination the checkout's telemetry remote names, under |
| 39 | $XDG_STATE_HOME/valley/telemetry/spools. A background flusher sends each |
| 40 | spool to its own destination, with the report grant; flush does the same |
| 41 | now, and --remote limits it to that remote's spool. Telemetry never fails |
| 42 | or holds up a command, and changes nothing it prints. |