Introducing GitHub Copilot in the .NET Aspire dashboard! GitHub Copilot is your new AI debugging assistant.
GitHub Copilot supercharges the dashboard's OpenTelemetry debugging and diagnostics experience. With AI, you can:
You'll have access to Copilot in the dashboard when you launch your app from VS Code or Visual Studio.
RequirementsGitHub Copilot is only available when a .NET Aspire project is run from an IDE.
You must also be logged into a GitHub account in the IDE that has a GitHub Copilot subscription. Copilot interactions in the .NET Aspire dashboard use the GitHub account associated with your IDE.
If you don't have a Copilot subscription yet, you can use Copilot for free by signing up for the Copilot Free plan, which includes a monthly limit of chat interactions.
Get startedTo get started, launch your .NET Aspire solution as usual in your IDE.
A GitHub Copilot button appears in the top-right corner of the dashboard. Selecting the button opens the Copilot UI.
In the Copilot UI, you can either select a suggested question, such as Summarize resources, or enter your own question in the chat input field. Press Enter to submit. For example: What health checks are configured in my app?
At the top of the Copilot UI are buttons to start a new conversation, expand the chat, or close the UI.
Analyze resources, console logs, and telemetryThere are several options for analyzing resources, console logs, and telemetry in your app. Two were discussed above:
Why did the product cache fail to start?
or What caused recent errors in the frontend?
The dashboard also includes a Copilot option in the context menus for resources, structured logs, traces, and spans. Select Ask GitHub Copilot to investigate the selected data.
If your app has structured logs or traces with errors, an Explain errors button appears on those pages. Selecting it makes all errors available to Copilot for investigation.
On the trace details page, the Explain trace button is always visible. It provides a quick way to analyze the currently viewed trace.
Troubleshooting Copilot hangs on "Getting ready"A known issue can cause the Copilot UI to hang with a "Getting ready" message when it is first accessed. This occurs when the dashboard is not launched from a supported version of Visual Studio or VS Code, or when no GitHub account is logged into the IDE. Closing and reopening the Copilot UI fixes the issue. Once fixed, the UI correctly displays a message with requirements for using the dashboard with GitHub Copilot.
Reached monthly limit of Copilot Free planThe GitHub Copilot Free plan includes a monthly limit on chat usage. When this limit is exceeded, Copilot will no longer function in the dashboard. Upgrade your Copilot subscription or wait for the limit to reset.
Limitations Data sizeAI models have limits on how much data they can process at once. The .NET Aspire dashboard may limit the amount of data sent to GitHub Copilot when necessary.
GitHub Copilot only accesses data when you explicitly interact with it. For example, submitting a chat query or selecting Ask GitHub Copilot from a context menu.
If you prefer to disable the feature entirely, set the ASPIRE_DASHBOARD_AI_DISABLED
environment variable to true
in your AppHost's launchSettings.json file. This hides all Copilot UI elements in the dashboard.
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"profiles": {
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:17129;http://localhost:15010",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DOTNET_ENVIRONMENT": "Development",
"ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:21124",
"ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:22206",
"ASPIRE_DASHBOARD_AI_DISABLED": "true"
}
}
}
}
GitHub Copilot frequently asked questions
For more information about GitHub Copilot, such as questions around plans, privacy and responsible AI usage, see the GitHub Copilot frequently asked questions.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4