Skip to content

[docs] Add profiling spans and options for aspire add command#1037

Open
aspire-repo-bot[bot] wants to merge 1 commit into
release/13.4from
docs/aspire-17347-add-profiling-spans-docs-0dd95427da9c8a9c
Open

[docs] Add profiling spans and options for aspire add command#1037
aspire-repo-bot[bot] wants to merge 1 commit into
release/13.4from
docs/aspire-17347-add-profiling-spans-docs-0dd95427da9c8a9c

Conversation

@aspire-repo-bot
Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#17347 by @davidfowl.

Targeting release/13.4 based on the source PR milestone 13.4.

Why this PR is needed

PR microsoft/aspire#17347 instruments the aspire add command with OpenTelemetry profiling spans so that --capture-profile captures where time is spent during package search, selection, and installation. The aspire-add command reference page previously had no mention of --capture-profile, --capture-profile-output, the new span names, or the add-specific OpenTelemetry tags.

What was changed

  • Updated src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx to document:
    • --capture-profile option
    • --capture-profile-output option
    • A Profiling spans section listing all new aspire/cli/add* span names with descriptions
    • A tags table covering aspire.cli.add.integration.name, version_specified, source_specified, configured_channel, package.search_result_count, package.match_count, package.match_kind, package.id, package.version, package.channel, and package.success
    • A new example showing aspire add redis --capture-profile --capture-profile-output add-redis.zip

Files modified

  • src/frontend/src/content/docs/reference/cli/commands/aspire-add.mdx (updated)

Generated by PR Documentation Check for issue #17347 · ● 20.2M ·

Documents the --capture-profile and --capture-profile-output options
for aspire add, and the new profiling spans and tags introduced by
microsoft/aspire#17347.

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 May 21, 2026
@aspire-repo-bot aspire-repo-bot Bot requested a review from mitchdenny May 21, 2026 18:55
@IEvangelist IEvangelist marked this pull request as ready for review May 21, 2026 19:01
@IEvangelist IEvangelist self-requested a review as a code owner May 21, 2026 19:01
Copilot AI review requested due to automatic review settings May 21, 2026 19:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Aspire CLI aspire add command reference to document the new OpenTelemetry profiling capture options and emitted spans/tags introduced for profiling the add flow.

Changes:

  • Documented --capture-profile and --capture-profile-output options for aspire add.
  • Added a “Profiling spans” section listing span names and associated tags.
  • Added an example command showing how to capture a profiling trace to a ZIP file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Adds the **redis** integration and captures a profiling trace to a ZIP file:

```bash title="Aspire CLI"
aspire add redis --version 9.5.0 --capture-profile --capture-profile-output add-redis.zip
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.

1 participant