Repository navigation
docs(site): add @memhtml/telemetry to the API tier - #304
Conversation
One starlightTypeDoc instance for packages/telemetry with the settled options, its sidebar group, a row in the API index, a README that serves as the page's overview, and a package description. The package renders with no TypeDoc warning and no MDX brace outside code. The doc comments on its exported surface are corrected where a source review found them wider than the code (the warning fires on a failed connection, not an error status; the flush is the provided layer's scope; a stale file:line citation), and the two TelemetryModules members gain doc comments because their type prints as __module. The emitted JavaScript is unchanged.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Merge basis: documentation and TSDoc generation wiring under the maintenance authority. The only source file touched, |
Brings the branch current with main before the merge Laith approved on 2026-10-20 (bench card 63). Main gained #299, #300, #301, #304, #305 and #297 (Effect 4.0.5) since the last merge; the branch's two files, packages/store/src/git.ts and packages/store/tests/git.test.ts, are untouched on main in that range.
Adds
@memhtml/telemetryto the generated API tier at/api/telemetry/.What changes:
apps/docs/astro.config.ts: onestarlightTypeDocinstance forpackages/telemetrywith the settled options, after@memhtml/head's, and its sidebar group.apps/docs/src/content/docs/api/index.md: one row.packages/telemetry/README.md(new): the page's overview. It says what the exporter does with the endpoint unset and set, which variables it reads, and what a failed export does.packages/telemetry/package.json: adescription.packages/telemetry/src/index.ts: doc comments only. The emitted JavaScript is unchanged (both versions transpiled withremoveCommentsgive identical output). The edits:TelemetryModulesmembers get doc comments naming their module, because theirtypeof import(...)type prints as__module.TelemetryOptionsgets an interface comment.env's comment names the variables it governs and drops afile:linecitation that no longer pointed at the Config provider.serviceName's comment says a blankOTEL_SERVICE_NAMEalso falls back.warnOncecomment says it fires on a failed connection; an error status from the collector logs nothing.layerTelemetry's comment says a failed export never fails a command, and that the final flush happens when the provided layer's scope closes.TypeDoc renders the package with no warning and no MDX brace outside code (the brace probe over the generated tree: 0 hits).
Verified:
mise run check: 75/75 on the branch, rebuilt on 5075b6a.packages/telemetry/src, its tests, both callers and Effect 4.0.3's OTLP exporter, with loopback probes. It found six statements wider than the code. All six were fixed, and a follow-up over the whole edited files found six more, also fixed.