gunk-dev/the-valley

telemetry.txt

sourced9f7bacd171bmain's published tip history
2.6 KiB
1usage: 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
22Reading needs a key whose principal holds the host's observe grant. A
23principal may have four follows and five bounded requests (sources,
24snapshot, read) open on a host at once; one more of a kind is refused
25until one ends. The remote is the checkout's valley.telemetry.remote, else
26origin, or the one --remote names (a remote, an ssh URL, or
27user@host:path); its URL is read and never run. --json prints the
28valley-telemetry/v1 answer lines as they come. A gap, a cut-short answer or
29an error is said; an answer that does not end exits 1.
30
31With `git config valley.telemetry true`, every valley command records a
32command record: its verb (and knot's or telemetry's subverb), the names of
33the flags it was given, its project, its exit status and its wall time,
34and for pending and status the milliseconds and processes each phase took.
35It never records an argument's value, a path, a title or a body. Every
36approval attempt, from approve or from review, also records its steps and
37its checks' progress. Records go to an owner-only spool for the
38destination the checkout's telemetry remote names, under
39$XDG_STATE_HOME/valley/telemetry/spools. A background flusher sends each
40spool to its own destination, with the report grant; flush does the same
41now, and --remote limits it to that remote's spool. Telemetry never fails
42or holds up a command, and changes nothing it prints.