Skip to content

docs(site): add @memhtml/telemetry to the API tier - #304

Merged
laithalsaadoon merged 1 commit into
mainfrom
docs/api-telemetry
Oct 20, 2026
Merged

laithalsaadoon merged 1 commit into
mainfrom
docs/api-telemetry

Conversation

@laithalsaadoon

Copy link
Copy Markdown
Contributor

Adds @memhtml/telemetry to the generated API tier at /api/telemetry/.

What changes:

  • apps/docs/astro.config.ts: one starlightTypeDoc instance for packages/telemetry with 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: a description.
  • packages/telemetry/src/index.ts: doc comments only. The emitted JavaScript is unchanged (both versions transpiled with removeComments give identical output). The edits:
    • The two TelemetryModules members get doc comments naming their module, because their typeof import(...) type prints as __module.
    • TelemetryOptions gets an interface comment.
    • env's comment names the variables it governs and drops a file:line citation that no longer pointed at the Config provider.
    • serviceName's comment says a blank OTEL_SERVICE_NAME also falls back.
    • The warnOnce comment 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.
  • A source-backed review of the README, the doc comments, the config comment, the row and the description against 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.

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.
Copilot AI balanced review requested due to automatic review settings October 20, 2026 07:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@laithalsaadoon

Copy link
Copy Markdown
Contributor Author

Merge basis: documentation and TSDoc generation wiring under the maintenance authority. The only source file touched, packages/telemetry/src/index.ts, changes doc comments only: transpiling the old and new file with removeComments gives identical JavaScript. The local gate is green (75/75 on 5075b6a), CI is 11/11 green on c12f991, our own source-backed review and its follow-up are applied, and Copilot's review body is its monthly-quota message.

@laithalsaadoon
laithalsaadoon merged commit c0bbb22 into main Oct 20, 2026
11 checks passed
@laithalsaadoon
laithalsaadoon deleted the docs/api-telemetry branch October 20, 2026 08:09
laithalsaadoon added a commit that referenced this pull request Oct 20, 2026
Brings the branch current with main before its merge, which Laith approved
on 2026-10-20 (bench card 62). Main gained #299, #300, #301, #304 and #305
since the branch was cut; the only shared file is pnpm-lock.yaml, which
merges clean.
laithalsaadoon added a commit that referenced this pull request Oct 20, 2026
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.
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