Repository navigation
docs(reference): correct telemetry.md (guest spool, boot line, minvmd log, update key) - #3882
Conversation
… log, update key) minvmd spools guest records per VM under <spool>/guest/<vm>/ with an 8 MiB bound of their own; the boot line carries more than on/off; minvmd.log rotates daily; min run is not a top-level command; build_key sends the version when no hash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g
|
/arch-review |
|
Reviewed: no findings; approval withheld, 5 threads unresolved at APPROVE withheld: 5 unresolved threads — norrietaylor docs/reference/telemetry.md, norrietaylor docs/reference/telemetry.md, norrietaylor docs/reference/telemetry.md, norrietaylor docs/reference/telemetry.md, norrietaylor docs/reference/telemetry.md. Resolving the last thread releases the approval on this head. Resolve the open threads. Resolving the last one releases the approval on this head; no new review is required. Clobber: none seen. |
|
/arch-review |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
This head adds only a merge of main (#3880, Cargo.lock and deny.toml). The telemetry.md diff is the same as the diff at 9773d179, and that head got a PASS. The text agrees with architecture.md D9. The guest does not get your endpoint or headers, records go to a local spool, and the off switches do not change. No condition is open.
Ruled at c84ceda against gominimal/arch@d3d472929d81 by claude-opus-5-5.
There was a problem hiding this comment.
Scope matches the title. The diff changes only docs/reference/telemetry.md, and each hunk traces to an item in the PR body. Clobber none found from the diff. The git log check did not run, because the shell was not available in this run. Correctness I read the code behind each corrected claim. These claims agree with the code: the per-VM guest spool path and its 8 MiB bound, the min bug collection, the boot line tokens, the minvmd.log rotation and 14 files, the removal of min run, the build_key fallback, the source install value, and the two door log messages. Four statements do not agree fully with the code: the no-line condition, the query or fragment warning, the key row for a package install, and the scope of the minimal.forwarded_by stamp. One nit covers two lines that the edit did not wrap. Not checked: gitleaks, git log and git blame (no shell), the prose lint, and the ~/.local/state/minimal state directory on macOS.
| No line at all means telemetry is off for that process, or both signals are | ||
| `none` and the spool is off. Check `MINIMAL_TELEMETRY`, `DO_NOT_TRACK`, | ||
| `OTEL_SDK_DISABLED` and the `*_EXPORTER` variables, and for a daemon, the | ||
| environment of the command that started it. |
There was a problem hiding this comment.
low · The no-line condition does not agree with init. Both signals set to none give no line while the spool switch is on, because a signal that is off does not spool (switches.rs:271). MINIMAL_OTEL_SPOOL=0 with no endpoint also gives no line, with both signals on. The check list omits MINIMAL_OTEL_SPOOL and the endpoint variables, so a reader in the second case finds nothing wrong. State the condition as: no signal has an endpoint and no signal spools. Add MINIMAL_OTEL_SPOOL and the endpoint variables to the list. This is one instance.
There was a problem hiding this comment.
Addressed in cb7ecda: the no-line condition now reads "no signal has an endpoint and no signal spools", notes that a none signal does not spool and that MINIMAL_OTEL_SPOOL=0 with no endpoint logs no line, and the check list adds MINIMAL_OTEL_SPOOL and the *_ENDPOINT variables (crates/mlog/src/otel/switches.rs:271, spool: spool && !s.off). @norrietaylor, could you re-approve when you have a moment?
| the warning names is not a full URL, so that signal is not exported. A base | ||
| endpoint with a query or a fragment does not export either, because the | ||
| signal path cannot go on its end. Set the variable to a URL such as | ||
| `http://localhost:4318`. |
There was a problem hiding this comment.
low · The heading quotes one warning, and the second sentence describes a different warning without its text. A base endpoint with a query or fragment prints has a query or fragment, so the signal path cannot be appended to it, not the quoted text. A person who searches the page for that warning does not find it. Quote the second text too, in this entry or in an entry of its own. The PR body cites both constants (otel.rs:401, :403).
There was a problem hiding this comment.
Addressed in cb7ecda: the query-or-fragment warning has its own entry headed with its exact text, has a query or fragment, so the signal path cannot be appended to it (crates/mlog/src/otel.rs:403, BASE_HAS_QUERY), with the remedy of removing the query or setting the per-signal endpoint, which takes a query as given. @norrietaylor, could you re-approve when you have a moment?
| |---|---| | ||
| | channel | `stable`, `unstable`, `nightly`; `pinned` for an install made with `--version`; `source` for a binary that no install record describes (a development build, or a copy of `min` other than the one the installer put in place). Only a channel install is ever notified | | ||
| | key | the channel pointer this build was installed from, written by the installer to `<state>/minimal/install.toml`; for a build without one, the commit hash in `min version` | | ||
| | key | The channel pointer that the installer wrote to `<state>/minimal/install.toml` for this build. A build without one sends the commit hash in `min version`, or the version itself when it does not hold a hash | |
There was a problem hiding this comment.
low · The key row names only the installer's file, then says that a build without one sends the commit hash or the version. A package install has no installer file, and read_install sends the key from the package's <prefix>/share/minimal/install.toml. The row as written says that a package install sends its commit hash. The install row two lines down already names the package file. Name it here too. The old text had the same gap, and this PR rewrote the row.
There was a problem hiding this comment.
Addressed in cb7ecda: the key row now names both sources, the installer's <state>/minimal/install.toml and a package's <prefix>/share/minimal/install.toml, and falls back to the commit hash only when neither file exists (crates/minimal/src/update_check/state.rs:82, read_install). @norrietaylor, could you re-approve when you have a moment?
| keeps its own spool on the VM's state volume as well. | ||
| `minvmd` also keeps a copy of the guest's records in a spool of its own for | ||
| each VM, `<spool>/guest/<vm>/`. `minvmd` marks each record there with | ||
| `minimal.forwarded_by=minvmd` and `minimal.vm=<vm>`. `min bug` collects that |
There was a problem hiding this comment.
low · marks each record there limits the two attributes to the spool copy. minvmd stamps a record before it spools the record and before it batches the record for the forward. The records in your collector carry minimal.forwarded_by=minvmd and minimal.vm=<vm> too. That is the fact a person needs to tell VMs apart in the collector, and the page does not state it anywhere else. Say that both copies carry the attributes.
There was a problem hiding this comment.
Addressed in cb7ecda: the paragraph now says minvmd stamps each guest record before it spools or forwards it, so both the spool copy and the collector records carry minimal.forwarded_by=minvmd and minimal.vm=<vm>, and that minimal.vm tells VMs apart in the collector (crates/minvmd/src/guest_telemetry.rs:459 stamps before :473 spools and the batch push). @norrietaylor, could you re-approve when you have a moment?
| When your sessions run in a microVM, the guest daemon gets its telemetry | ||
| settings on its kernel command line. They are `MINIMAL_TELEMETRY=1`, the | ||
| spool and per-signal off switches, your `MINIMAL_OTEL_FILTER`, the forward | ||
| address and `TRACEPARENT`. It does not get your endpoint or headers. Its records travel to `minvmd` on your machine over a |
There was a problem hiding this comment.
nit · The edit left this line at about 118 characters, where the paragraph wraps near 76. Line 214 has the same shape after its edit. Wrap both lines again.
There was a problem hiding this comment.
Addressed in cb7ecda: re-wrapped the long lines in the microVM paragraph and the kernel-command-line paragraph to the paragraph width, plus one long line my own edit left in the URL warning entry. @norrietaylor, could you re-approve when you have a moment?
…ing, key and VM stamps State the no-line condition as no endpoint and no spool, and list MINIMAL_OTEL_SPOOL and the endpoint variables. Quote the base-endpoint query-or-fragment warning in its own entry. Name the package install file in the update-check key row. Say that minvmd stamps guest records before both the spool and the forward. Re-wrap two long lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g
|
/arch-review |
There was a problem hiding this comment.
minimal-review — approval withheld
Verdict COMMENT — APPROVE withheld: 5 unresolved threads — norrietaylor docs/reference/telemetry.md, norrietaylor docs/reference/telemetry.md, norrietaylor docs/reference/telemetry.md, norrietaylor docs/reference/telemetry.md, norrietaylor docs/reference/telemetry.md. No findings.
Panel: 3 of 3 personas ran (correctness, security, supply-chain).
|
/arch-review |
There was a problem hiding this comment.
arch-review: PASS · the full ruling
The change is docs only, and it conforms to D9 and AT27 of the design. The guest boot line that the doc lists carries no endpoint, header or resource attribute, as AT27 requires. The per-VM spool and the minimal.vm attribute match the code at this head. Nothing is left to do.
Ruled at cb7ecda against gominimal/arch@d3d472929d81 by claude-opus-5-5.
Docs pass,
docs/reference/telemetry.md. Docs only. Claims checked againstmainat b58e1f5.Corrected
minvmd's own spool file.minvmdwrites them to aper-VM spool,
<spool>/guest/<vm>/(mlog/src/otel.rs:163spool_guest_line,:213guest_spool_dir). It stampsminimal.forwarded_byandminimal.vm(
minvmd/src/guest_telemetry.rs:111-113), andmin bugcollects that directory(
minimal/src/diag/collect.rs:484-495).and is pruned on its own (
otel.rs:191GUEST_SPOOL_MAX_BYTES;guest_telemetry.rs:76-89). The "fills the shared spool faster" text is gone.MINIMAL_TELEMETRY=1, the spooland per-signal
=noneswitches,MINIMAL_OTEL_FILTER, the vsock forward address andTRACEPARENT(minvmd/src/telemetry.rs:224-262). The two places that describe it now agree.minvmd.logrotates daily asminvmd.log.<date>, keeps 14 files, and is written by adetached
minvmd run --detach(minvmd/src/lib.rs:40-66).min runis not a top-level command (minimal/src/cli.rs:63-216). It is gone from thenotice-suppressing list.
keyfor a build without a pointer is the commit hash only when the versionholds
.g<hex>, else the version itself (minimal/src/update_check/state.rs:40-45build_key). Theinstallfield also takessource(state.rsInstall::source).noneand thespool is off (
otel.rsinit).Added (gaps)
(
otel.rs:401,:403), and for an unrecognised*_EXPORTERvalue (otel.rs:964).Cut (time-relative)
Verified, kept as is
All the rest, each against code. Among them: the
MINIMAL_TELEMETRYvalues and vetoes(
mlog/src/otel/switches.rs:30-37,:220-236,:311-335), the endpoint and header precedenceand the refusal text (
switches.rs:248-420,otel.rs:855-954), vsock 7353 and 64 KiB/s with a4 MiB burst (
guest_telemetry.rs:60,:90,:94), the spool path, names, rotation, 7-day andabout-46-MiB pruning and the modes (
otel/spool.rs), the resource attributes, the secretscrubbing, bundle redaction, 8000 the update-check endpoint, budget, notice and off switches, and
the exit waits.
Not code-checkable or left as is
upgrade flow.
written.
MINIMAL_UPDATE_CHECK_URLand
--minimal-diroff switch, exporter-variable precedence, and the spool directory'ssymlink refusal.
Vale is clean on changed lines. Leaves
docs/specsand the BEP docs issues alone.🤖 Generated with Claude Code
https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g
Summary by CodeRabbit