Repository navigation
[docs] Document that ShowTerminalHost also gates terminal-host telemetry - #1651
Conversation
Co-authored-by: Copilot <[email protected]>
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
A documentation accuracy discrepancy remains in the terminal-size defaults, warranting final human review.
Review effort: Lite
Findings: None
What changed in this PR
This docs-only PR clarifies that ShowTerminalHost also controls terminal-host telemetry export.
Changes:
- Documents opt-in logs, metrics, and traces for terminal-host helpers.
- Adds a note clarifying defaults and unaffected parent-resource telemetry.
- Notes that terminal dimensions still need alignment with release defaults.
| File | Summary |
|---|---|
src/frontend/src/content/docs/app-host/with-terminal.mdx |
Documents terminal-host telemetry gating and related behavior. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
David Pine (IEvangelist)
left a comment
There was a problem hiding this comment.
Automated docs-accuracy review
Phase A source of truth: microsoft/aspire @ release/13.6 (SHA 63b5556c7f4de9b259d6ba71a312f597a72bf307), source PR microsoft/aspire#20005 (commit a6629d43f8, "Make terminal-host telemetry opt-in").
Claims extracted: 5 non-narrative → 5 verified, 0 verified-with-nuance, 0 unverifiable, 0 contradicted.
Phase B (doc-tester): exercised /app-host/with-terminal/ — 0 critical, 0 warnings.
Verdict: APPROVE — the new telemetry-gating behavior matches the source exactly.
Phase A — Claim verification
✅ Verified claims (5) — evidence
- C1 —
ShowTerminalHostdefaults tofalse(with-terminal.mdx:77): verified.TerminalAnnotation.cs— "Defaults tofalse: terminal host resources are hidden from the dashboard and CLI resource list and do not export telemetry…";TerminalResourceBuilderExtensions.cs:380setsIsHidden = !options.ShowTerminalHost. - C2 — Table row: hidden helper resources are absent from the dashboard/CLI resource lists and don't export logs/metrics/traces by default;
truereveals them and exports their telemetry (with-terminal.mdx:77): verified. Visibility gateIsHidden = !options.ShowTerminalHost; OTLP env is wired only insideif (options.ShowTerminalHost)(line 225); and the annotation forcesASPIRE_TERMINAL_HOST_TELEMETRY_ENABLED = options.ShowTerminalHost ? "true" : "false"(line 390). - C3 — By default the helper resources don't export logs/metrics/traces even when an OTLP endpoint is configured for the app, so they never appear in the dashboard's telemetry resource list (incl. the Traces filter) (new Aside): verified. Source comment: "Explicitly disable telemetry for hidden hosts even if OTLP settings or a diagnostic opt-in were inherited from the AppHost's environment"; and "Telemetry creates dashboard resource entries independently of
IsHidden" — i.e. it's telemetry export that would place a resource in the telemetry list, so disabling it keeps the hidden hosts out. - C4 — Setting
ShowTerminalHost = trueboth reveals the helper resources and turns on their diagnostic telemetry when an OTLP endpoint is available (new Aside): verified.IsHidden = !options.ShowTerminalHost(reveal) +if (options.ShowTerminalHost) { OtlpConfigurationExtensions.AddOtlpEnvironment(...) }; XML doc: "Telemetry is exported when a dashboard OTLP endpoint is available." - C5 — This is independent of the parent resource's own telemetry, which is never affected by
WithTerminal(new Aside): verified. TheWithTerminalmaterialization path only wires OTLP/telemetry env onto the per-replicaterminalHosthelper resources; it never modifies the parent resource's telemetry configuration.
Phase B — Doc-tester results
Scope: the single doc route touched by this PR. Tested against the live production site (release/13.6 is not yet published, no per-PR preview exists, and frontend deps are not installed in this hourly job).
Critical issues: none.
Warnings: none.
Passed checks:
/app-host/with-terminal/loads (200; title "Test TUI and shell apps using WithTerminal").- The
ShowTerminalHostoptions-table row is present (the PR appends the telemetry clause to its existing description cell). - The insertion point for the new Aside is clean: the Columns/Rows Tip Aside is immediately followed by the "The resource being run is always the terminal program…" Note, so the new "Terminal host telemetry is opt-in" Note lands between them.
Knowledge gaps / limitations:
- PR content isn't deployed, so the appended table clause and the new telemetry Aside couldn't be rendered as they will appear.
- The dashboard / CLI telemetry-resource-list behavior can't be exercised from the docs site. Phase A confirmed it from source (
TerminalAnnotation.cs, theIsHidden/ OTLP gating inTerminalResourceBuilderExtensions.cs, and theASPIRE_TERMINAL_HOST_TELEMETRY_ENABLEDconfig key).
Automated review. Phase A reads microsoft/aspire source; Phase B validates the rendered docs site as a blind user; only PR-changed content and its routes were in scope.
f95ba99
into
release/13.6
Documents changes from microsoft/aspire#20005
@mitchdennyTargeting
release/13.6based on the source PR milestone13.6.Why
microsoft/aspire#20005 makes terminal-host telemetry opt-in. Previously, the hidden per-replica terminal-host helper resources (created by
WithTerminal()) exported logs/metrics/traces to the dashboard whenever an OTLP endpoint was available, which registeredAspire.TerminalHostin the dashboard's telemetry resource list (including the Traces filter) even when no spans were emitted. Now, helper telemetry is only exported whenTerminalOptions.ShowTerminalHost = true.The existing docs page for
WithTerminalalready documentedShowTerminalHostas controlling whether the helper resources are visible in the dashboard/CLI resource list, but did not mention that it also gates telemetry export. This PR updates that description.What changed
src/frontend/src/content/docs/app-host/with-terminal.mdx:ShowTerminalHostrow in the options table to note it also controls whether helper resources export diagnostic logs, metrics, and traces.<Aside type="note">callout titled "Terminal host telemetry is opt-in" explaining the new default behavior and clarifying that parent-resource telemetry is unaffected.No new pages were created; this is a targeted update to the existing
WithTerminalreference page.