Skip to content

[docs] Document dashboard self-telemetry OTLP service name - #1821

Draft
aspire-repo-bot[bot] wants to merge 1 commit into
release/17.0from
docs/pr-20600-37098491466-1-264beb6c6444c248
Draft

aspire-repo-bot[bot] wants to merge 1 commit into
release/17.0from
docs/pr-20600-37098491466-1-264beb6c6444c248

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#20600

@JamesNK

Target branch

Targeting release/17.0 based on the source PR milestone 17.0 (exact match found on microsoft/aspire.dev).

Why this is needed

microsoft/aspire#20600 configures the Aspire dashboard's own OTLP trace export to use aspire-dashboard as the default service.name (instead of the generic OpenTelemetry SDK default), and disables automatic service.instance.id generation so the resource identity stays stable. This is a user-facing configuration change (the PR body includes an explicit "User-facing usage" section describing OTEL_EXPORTER_OTLP_ENDPOINT / OTEL_SERVICE_NAME behavior), but the dashboard configuration reference didn't previously document the dashboard's own self-telemetry export at all.

What changed

Added a new "Dashboard self-telemetry" subsection under ## OTLP in src/frontend/src/content/docs/dashboard/configuration.mdx, explaining:

  • The dashboard exports its own traces over OTLP only when OTEL_EXPORTER_OTLP_ENDPOINT is set.
  • The default service.name is aspire-dashboard.
  • It can be overridden with OTEL_SERVICE_NAME, or service.name in OTEL_RESOURCE_ATTRIBUTES; OTEL_SERVICE_NAME takes precedence when both are set.
  • service.instance.id isn't auto-generated for the dashboard's own resource, but a value supplied via OTEL_RESOURCE_ATTRIBUTES is preserved.
  • A short example showing the two environment variables together.

This mirrors the behavior added in DashboardWebApplication.cs (DefaultOtlpServiceName = "aspire-dashboard", ConfigureResource(...).AddService(..., autoGenerateServiceInstanceId: false)) and the corresponding src/Aspire.Dashboard/README.md update in the source PR.

Files modified

  • src/frontend/src/content/docs/dashboard/configuration.mdx — added the "Dashboard self-telemetry" subsection (new content only, no existing text changed).

No new pages were created; this is a targeted addition to the existing dashboard configuration reference page.

Generated by PR Documentation Check for #20600 · copilot · auto · 98 AIC · ⌖ 12.5 AIC · ⊞ 20.3K · ◷

Documents the aspire-dashboard default service.name and OTEL_SERVICE_NAME
override behavior for dashboard self-telemetry export, from
microsoft/aspire#20600.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Oct 3, 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 #1821. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1821 artifacts

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

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.

0 participants