![]() |
VOOZH | about |
dotnet add package AspireDashboardHelper --version 1.0.13
NuGet\Install-Package AspireDashboardHelper -Version 1.0.13
<PackageReference Include="AspireDashboardHelper" Version="1.0.13" />
<PackageVersion Include="AspireDashboardHelper" Version="1.0.13" />Directory.Packages.props
<PackageReference Include="AspireDashboardHelper" />Project file
paket add AspireDashboardHelper --version 1.0.13
#r "nuget: AspireDashboardHelper, 1.0.13"
#:package AspireDashboardHelper@1.0.13
#addin nuget:?package=AspireDashboardHelper&version=1.0.13Install as a Cake Addin
#tool nuget:?package=AspireDashboardHelper&version=1.0.13Install as a Cake Tool
The Aspire Dashboard Helper is a library that helps you to add OpenTelemetry to your application and send the data to an Aspire Dashboard running via docker.
Add the following code to your program.cs file
var sName = "Application Name";
builder.AddCommonOTelLogging(() => ResourceBuilder.CreateDefault().AddService($"{sName} {builder.Configuration.GetValue<string>("env")}"));
builder.AddCommonOTelMonitoring($"{sName} {builder.Configuration.GetValue<string>("env")}", builder.Configuration.GetValue<string>("BuildNumber"), sName);
builder.AddOldOpenTel();
Add the following settings to your appsettings.json file
"AspireDashboard": "http://localhost:18889/",//The URL to send data to the Aspire Dashboard
"env": "Dev",//The environment of your application eg Dev, Test, Prod etc
"BuildNumber": "",//The build or version number of your application
To run the Aspire Dashboard from a docker compose file you can use the following code
aspire-dashboard:
image: mcr.microsoft.com/dotnet/nightly/aspire-dashboard:8.0.0-preview.5
container_name: aspire-dashboard
expose:
- "18888"
- "18889"
ports:
- 18889:18889
An example of how to use the Aspire Dashboard can be found https://learn.microsoft.com/en-us/samples/dotnet/aspire-samples/aspire-standalone-dashboard/
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.