Skip to content

docs: generate the metrics reference and bring the config reference to v1.6.5 - #2701

Merged
amankrx merged 1 commit into
TraceMachina:mainfrom
amankrx:docs/reference-generators
Aug 20, 2026
Merged

docs: generate the metrics reference and bring the config reference to v1.6.5#2701
amankrx merged 1 commit into
TraceMachina:mainfrom
amankrx:docs/reference-generators

Conversation

@amankrx

@amankrx amankrx commented Aug 19, 2026

Copy link
Copy Markdown
Member

What and why

Adds a generated metrics reference: gen-metrics-reference.mjs parses every OpenTelemetry instrument out of nativelink-util/src/metrics.rs and scans the workspace for its call sites, so the page states for each of the 30 instruments whether the binary actually emits it, under what condition, and which Prometheus series it becomes. Two small fixes to the existing generators ride along: the changelog page no longer puts a link inside each release heading (Fumadocs wraps headings in their own anchor, and the nested broke hydration), and the config-reference generator stops listing index in the folder's meta.json (Fumadocs then uses the index page as the folder link instead of showing it twice) and skips manifest entries for tags that have no page. Also a Shiki alias so starlark code fences highlight.

How was this verified?

Ran all three generators against this checkout and built the docs app (bun run build, 58 pages). Spot-checked the metrics page's "emitted" verdicts against the call sites in the scheduler, worker-API, store-tier, health and connection code; the two "never emitted" instruments (cache.size, cache.entries) match the known gap in the shipped recording rules. Confirmed the changelog page renders without the hydration error. schema-to-mdx.mjs is untouched, and no committed generated page is changed in this PR: the next config-reference run should diff only the meta.json line. Vale and the pre-commit hooks pass over the changed files.

Risk

Low. New script and new page, plus behaviour changes in two generators that only show up on their next run (one meta.json line; a manifest that omits dead versions). The metrics page links to /operate/observability, which lands with the content PR; until then that link 404s. gen:metrics-reference is not yet wired into the config-reference workflow, so the page can drift from metrics.rs until someone re-runs it.


This change is Reviewable

@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nativelink Ready Ready Preview Aug 20, 2026 4:32pm
nativelink-aidm Ready Ready Preview Aug 20, 2026 4:32pm

Request Review

Comment thread .github/styles/config/vocabularies/TraceMachina/accept.txt Outdated
Comment thread web/apps/docs/scripts/gen-config-reference.mjs
Comment thread web/apps/docs/source.config.ts Outdated
@amankrx
amankrx merged commit 8f86dab into TraceMachina:main Aug 20, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants