startup-perf
Skill6.3k starsChanged 6 months agoMITView on GitHub
Measures Aspire startup profiling with CLI self-profile capture and dashboard export traces.
Trending
Quiet since September.about the whole repository
Who's talking about microsoft/aspire
- Azure/azure-functions-core-tools“azure-functions-core-tools 4.13.2 Linux x64 package references a missing CDN blob”GitHub · Aug 9, 2026 · 18 reactions
- apple/container“[Request]: `cp` command tar stream support”GitHub · Jul 6, 2026 · 6 reactions
- CommunityToolkit/Aspire“Add Dekaf Kafka client integration and Schema Registry hosting support”GitHub · Sep 21, 2026 · 2 reactions
- thomhurst/TUnit“chore(deps): update aspire to 13.5.2”GitHub · Aug 21, 2026 · 2 reactions
- kubernetes-client/csharp“UnobservedTaskException from orphaned ReadLineAsync task in Watcher<T>.CreateWatchEventEnumerator during …”GitHub · Jun 22, 2026 · 2 reactions
The biggest 5 of 20 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 20
Talked about on GitHub and Bluesky (20 times).
On GitHub · 18
- Aug 9, 2026azure-functions-core-tools 4.13.2 Linux x64 package references a missing CDN blob — Azure/azure-functions-core-tools18 reactions · 11 comments
- Jul 6, 2026[Request]: `cp` command tar stream support — apple/container6 reactions · 2 comments
- Sep 21, 2026Add Dekaf Kafka client integration and Schema Registry hosting support — CommunityToolkit/Aspire2 reactions
- Aug 21, 2026chore(deps): update aspire to 13.5.2 — thomhurst/TUnit2 reactions · 3 comments
- Jun 22, 2026UnobservedTaskException from orphaned ReadLineAsync task in Watcher<T>.CreateWatchEventEnumerator during cancellation — kubernetes-client/csharp2 reactions · 2 comments
13 more on GitHub
- Jun 17, 2026chore(deps): update aspire monorepo to 13.4.5 — chrismeller/archiveteam-exporter2 reactions
- Jun 11, 2026chore(deps): update aspire monorepo to 13.4.3 — chrismeller/archiveteam-exporter2 reactions · 1 comment
- May 19, 2026chore(deps): update aspire monorepo to 13.3.4 — chrismeller/archiveteam-exporter2 reactions
- Sep 26, 2026Update Aspire version to 13.6.0 Staging Channel — CommunityToolkit/Aspire1 reaction · 5 comments
- Sep 8, 2026This PR merges the `release/13.5` branch back to `main` after the v13.5.0 release. — cli/cli1 reaction · 1 comment
- Aug 24, 2026Azure.Provisioning.AppContainers uses incorrect default naming requirements for managed environments — Azure/azure-sdk-for-net1 reaction
- Aug 6, 2026safe-outputs checkout auto-detection downgrades contents: write to read — github/gh-aw1 reaction
- Jun 15, 2026deps: Update aspire monorepo to 13.4.6 — ANcpLua/DotNetTests1 reaction
- May 26, 2026safe_outputs add_comment hard-fails on locked source PR (pr-docs-check recurring failures) — github/gh-aw1 reaction
- May 24, 2026"Install the Aspire Templates" section should be clear it's referring specifically to `dotnet` — microsoft/aspire.dev1 reaction · 1 comment
- May 13, 2026Azure.Provisioning.ContainerService: ManagedClusterIngressProfile is internal, blocking preview-API gatewayAPI and applicationLoadBalancer additions — Azure/azure-sdk-for-net1 reaction · 3 comments
- May 12, 2026Application Insights is filled with EventProcessor.Process logs that cannot be filtered out when OpenTelemetry enabled — Azure/azure-functions-host1 reaction
- Apr 16, 2026End2End template with Foundry Hosted Agents — leslierichardson95/aspire-agent-template1 reaction · 3 comments
On Bluesky · 2
- Mar 23, 2026.NET Aspireはコードファーストで拡張性のある分散アプリ開発を統一的に支援するツール群らしい コードでサービスやリソースを定義してローカルデバッグからデプロイまでこなせるのが便利そうかな yug1224 starred microsoft/aspire… — @yug1224.com1 likes and repost
- Mar 22, 2026📦 microsoft / aspire ⭐ 5,662 (+72) 🗒 TypeScript Aspire is the tool for code-first, extensible, observable dev and deploy. — @github-trending-js.bsky.social1 likes and repost
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- api-reviewSkill
- azdo-internalSkill
- backport-prSkill
- bump-aspire-versionSkill
- ci-test-failuresSkill
- cli-channel-debuggingSkill
- cli-e2e-testingSkill
- code-reviewSkill
- connection-propertiesSkill
- create-prSkill
- dashboard-testingSkill
- dependency-updateSkill
- deployment-e2e-testingSkill
- deprecate-integrationSkill
- fix-flaky-testSkill
- hex1bSkill
- hosting-integration-authoringSkill
- issue-investigationSkill
- pr-testingSkill
- reviewing-aspire-architectureSkill
- test-managementSkill
- update-container-imagesSkill
- vscode-extensionSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when measuring, validating, or investigating Aspire startup performance with the CLI self-profile capture flow.
- Very specific: line 24
Use an Aspire CLI build that contains --capture-profile.
- Very specific: line 54
If --capture-profile-output is omitted, the CLI writes aspire-profile-<timestamp>-<session>.zip under the current working directory.
- Distinctive: line 90
Prefer separate worktrees for baseline and feature measurements so branch switching does not disturb a dirty worktree.
- Distinctive: line 112
Keep profiling APIs coarse-grained and profiling-specific:
- Distinctive: line 115
Do not expose one public/internal method per tag.
- Distinctive: line 117
Call sites should describe the operation being profiled, not know tag/event names.
- Very specific: line 118
Do not add profiling tags/events to Activity.Current unless the current activity is known to be a profiling activity or profiling has …
- Distinctive: line 119
Keep high-cardinality data out of reported telemetry.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Aspire Startup Profiling with OTEL
Use this skill when measuring, validating, or investigating Aspire startup performance with the CLI self-profile capture flow.
The workflow is the hidden CLI flag --capture-profile. It starts a private standalone dashboard collector, enables profiling-only OTEL instrumentation for the command and child AppHost processes, exports a trace archive, and then exits with the wrapped command's exit code.
Current Profiling Model
Profiling is opt-in and separate from reported telemetry:
- Enable profiling with
ASPIRE_PROFILING_ENABLED=trueor1. - CLI profiling spans use the
Aspire.Cli.ProfilingActivitySource. - Hosting profiling spans use the
Aspire.Hosting.ProfilingActivitySource. - DCP startup spans use the
dcp.startupinstrumentation scope when DCP emits startup telemetry. - Reported telemetry must not carry profiling session IDs, high-cardinality profiling tags, or profiling spans.
Prerequisites
Use an Aspire CLI build that contains --capture-profile. From a repo checkout:
./restore.sh
./dotnet.sh build src/Aspire.Cli/Aspire.Cli.csproj /p:SkipNativeBuild=trueRepo-local development builds discover the built managed dashboard from artifacts/bin/Aspire.Managed when ASPIRE_REPO_ROOT points at the checkout. Installed or bundled CLIs discover the dashboard from the bundle. Use ASPIRE_DASHBOARD_PATH / ASPIRE_MANAGED_PATH when profiling with a custom dashboard build.
Quick Start
Capture startup for an AppHost and exit automatically after startup:
./dotnet.sh exec artifacts/bin/Aspire.Cli/Debug/net11.0/aspire.dll run \
--project tests/TestingAppHost1/TestingAppHost1.AppHost/TestingAppHost1.AppHost.csproj \
--capture-profile \
--capture-profile-output artifacts/tmp/startup-profile/profile.zip \
--non-interactiveCapture any other Aspire command:
aspire ls \
--capture-profile \
--capture-profile-output artifacts/tmp/startup-profile/ls-profile.zip \
--non-interactiveIf --capture-profile-output is omitted, the CLI writes aspire-profile-<timestamp>-<session>.zip under the current working directory. For long-lived run and start, the CLI exits automatically after startup and waits for profiling data to settle before writing the export.
Self-Profile Options
| Option | Description |
--capture-profile | Hidden recursive root option that enables self-profile capture for any Aspire command. |
--capture-profile-output PATH | Output zip path. Relative paths are rooted at the current working directory. |
--capture-profile-delay SECONDS | Optional warmup delay before stopping long-lived run/start commands. Defaults to 5 seconds so AppHost-side spans have time to flush before shutdown. Increase it when you intentionally want additional post-start resource activity in the capture. |
Output Artifacts
The capture writes a dashboard export zip containing:
| Path | Description |
traces/profile.json | OTLP JSON trace export from the private dashboard collector. |
Inspect the export:
unzip -l artifacts/tmp/startup-profile/profile.zip
tmpdir="$(mktemp -d)"
unzip -q artifacts/tmp/startup-profile/profile.zip -d "$tmpdir"
jq -r '.resourceSpans[]?.scopeSpans[]?.scope.name' "$tmpdir/traces/profile.json" | sort | uniq -c
jq -r '.resourceSpans[]?.scopeSpans[]?.spans[]?.name' "$tmpdir/traces/profile.json" | sort | uniq -cExpected startup captures include:
Aspire.Cli.Profilingspans such asaspire/cli/command,aspire/cli/run, dotnet process spans, backchannel connect spans, and dashboard URL retrieval.Aspire.Hosting.Profilingspans such as DCP model work, resource creation, resource wait, and DCP resource observation.dcp.startupspans when the DCP process emits startup telemetry and the scenario is configured to require them.
Comparing Before/After Changes
Prefer separate worktrees for baseline and feature measurements so branch switching does not disturb a dirty worktree.
# Baseline worktree
aspire run --project path/to/AppHost.csproj \
--capture-profile \
--capture-profile-output artifacts/tmp/startup-profile-baseline/profile.zip \
--non-interactive
# Feature worktree
aspire run --project path/to/AppHost.csproj \
--capture-profile \
--capture-profile-output artifacts/tmp/startup-profile-feature/profile.zip \
--non-interactiveCompare traces/profile.json span names, durations, operation IDs, process IDs, events, and trace correlation. For statistically meaningful wall-clock comparisons, run multiple iterations manually and keep the environment stable. The self-profile capture flow produces artifacts; it is not a statistical benchmark runner by itself.
Parallel captures are supported because each --capture-profile process allocates its own collector ports and profiling session ID. Always use distinct --capture-profile-output paths. If the profiled AppHost launch profile pins dashboard, resource-service, or application ports, those AppHost ports can still conflict across parallel worktrees; use an isolated/randomized profile or adjust the AppHost ports for parallel runs.
Instrumentation Guidance
Keep profiling APIs coarse-grained and profiling-specific:
- Centralize raw
Activity, activity names, tag names, and event names in the profiling telemetry type for the area (Aspire.Cli.ProfilingorAspire.Hosting.Profiling). - Do not expose one public/internal method per tag. Prefer operation/result-level methods that accept the data for a phase and set multiple tags/events internally.
- Good API shape examples: start a dotnet process span with command, project, working directory, and options; record a process start result with started/process ID; record process completion with exit code and output counts; start a Kubernetes API span with operation/resource type; record retry details as one event method.
- Call sites should describe the operation being profiled, not know tag/event names.
- Do not add profiling tags/events to
Activity.Currentunless the current activity is known to be a profiling activity or profiling has explicitly wrapped it. - Keep high-cardinality data out of reported telemetry.
Common Issues
| Symptom | Cause | Fix |
The CLI bundle layout was found, but the dashboard binary (aspire-managed) is missing. | The CLI could not find a bundled, repo-local, or override dashboard binary. | Build the repo-local CLI, use an installed/bundled CLI, set ASPIRE_REPO_ROOT to the checkout, or set ASPIRE_DASHBOARD_PATH / ASPIRE_MANAGED_PATH to a custom managed dashboard build. |
| Self-profile export contains CLI spans but not Hosting spans | The AppHost did not run through a profiled startup path, or Hosting telemetry did not reach the collector. | Confirm aspire run or aspire start launched the expected AppHost and inspect traces/profile.json for Aspire.Hosting.Profiling. |
No exported spans contained aspire.profiling.session_id | Profiling was not enabled or telemetry was not exported. | Confirm --capture-profile was parsed before -- and inspect traces/profile.json. |
No profiling session contained correlated... spans | CLI/Hosting/DCP spans did not land in one correlated trace. | Inspect traces/profile.json for missing scopes or broken parent/trace IDs. |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

