Skip to content

[docs] Document that ShowTerminalHost also gates terminal-host telemetry - #1651

Merged
David Pine (IEvangelist) merged 1 commit into
release/13.6from
docs/pr-20005-34586660679-1-3bca31dccae311db
Sep 23, 2026
Merged

David Pine (IEvangelist) merged 1 commit into
release/13.6from
docs/pr-20005-34586660679-1-3bca31dccae311db

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#20005

@mitchdenny

Targeting release/13.6 based on the source PR milestone 13.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 registered Aspire.TerminalHost in the dashboard's telemetry resource list (including the Traces filter) even when no spans were emitted. Now, helper telemetry is only exported when TerminalOptions.ShowTerminalHost = true.

The existing docs page for WithTerminal already documented ShowTerminalHost as 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:
    • Updated the ShowTerminalHost row in the options table to note it also controls whether helper resources export diagnostic logs, metrics, and traces.
    • Added a new <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 WithTerminal reference page.

Generated by PR Documentation Check for #20005 · auto · 67.2 AIC · ⌖ 13.9 AIC · ⊞ 18.3K · ◷

@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Sep 11, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1651. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1651 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

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 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.

@IEvangelist David Pine (IEvangelist) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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 — ShowTerminalHost defaults to false (with-terminal.mdx:77): verified. TerminalAnnotation.cs — "Defaults to false: terminal host resources are hidden from the dashboard and CLI resource list and do not export telemetry…"; TerminalResourceBuilderExtensions.cs:380 sets IsHidden = !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; true reveals them and exports their telemetry (with-terminal.mdx:77): verified. Visibility gate IsHidden = !options.ShowTerminalHost; OTLP env is wired only inside if (options.ShowTerminalHost) (line 225); and the annotation forces ASPIRE_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 = true both 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. The WithTerminal materialization path only wires OTLP/telemetry env onto the per-replica terminalHost helper 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 ShowTerminalHost options-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, the IsHidden / OTLP gating in TerminalResourceBuilderExtensions.cs, and the ASPIRE_TERMINAL_HOST_TELEMETRY_ENABLED config 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.

@IEvangelist
David Pine (IEvangelist) merged commit f95ba99 into release/13.6 Sep 23, 2026
11 of 12 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the docs/pr-20005-34586660679-1-3bca31dccae311db branch September 23, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants