VOOZH about

URL: https://www.nuget.org/packages/AspireDashboardHelper/

⇱ NuGet Gallery | AspireDashboardHelper 1.0.13




👁 Image
AspireDashboardHelper 1.0.13

dotnet add package AspireDashboardHelper --version 1.0.13
 
 
NuGet\Install-Package AspireDashboardHelper -Version 1.0.13
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AspireDashboardHelper" Version="1.0.13" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AspireDashboardHelper" Version="1.0.13" />
 
Directory.Packages.props
<PackageReference Include="AspireDashboardHelper" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AspireDashboardHelper --version 1.0.13
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AspireDashboardHelper, 1.0.13"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AspireDashboardHelper@1.0.13
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AspireDashboardHelper&version=1.0.13
 
Install as a Cake Addin
#tool nuget:?package=AspireDashboardHelper&version=1.0.13
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Aspire Dashboard Helper

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.

👁 NuGet
👁 NuGet

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
  • localhost:18888 will be the URL of the Aspire Dashboard
  • localhost:18889 will be the URL your application uses to send OpenTelemetry data to the Aspire Dashboard

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.