NetAmpowering.AspNetCore 1.0.0

dotnet add package NetAmpowering.AspNetCore --version 1.0.0
                    
NuGet\Install-Package NetAmpowering.AspNetCore -Version 1.0.0
                    
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="NetAmpowering.AspNetCore" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NetAmpowering.AspNetCore" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="NetAmpowering.AspNetCore" />
                    
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 NetAmpowering.AspNetCore --version 1.0.0
                    
#r "nuget: NetAmpowering.AspNetCore, 1.0.0"
                    
#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 NetAmpowering.AspNetCore@1.0.0
                    
#: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=NetAmpowering.AspNetCore&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=NetAmpowering.AspNetCore&version=1.0.0
                    
Install as a Cake Tool

NetAmpowering.AspNetCore

Zero-code OpenTelemetry APM for ASP.NET Core Web APIs (.NET 8): controllers and minimal APIs. No dependency on Blazor (for Blazor Server, use NetAmpowering.Observability, which builds on this package).

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddControllers().AddApiObservability();          // one span per controller action
builder.Services.AddTracedScoped<IWeatherService, WeatherService>(); // one span per method call (AOP)
builder.AddNetAmpoweringTelemetry();                               // traces + metrics + OTLP export
builder.AddNetAmpoweringProfiler();                                // Pyroscope (optional)

var app = builder.Build();
app.MapControllers();
app.MapGet("/forecast/{days}", (int days, IWeatherService s) => s.Get(days))
   .WithNetAmpoweringTracing();                                    // one span per minimal-API endpoint
app.Run();

Configuration (appsettings.json, OpenTelemetry section): Enabled, ApplicationName, OtlpEndpoint, OtlpHeaders, OtlpMetricsEndpoint, OtlpMetricsHeaders, SamplingProbability (1.0 in dev, 0.1 in prod).

Building block Span produced
AddNetAmpoweringTelemetry() incoming and outgoing HTTP requests, runtime / ASP.NET Core metrics
AddApiObservability() Controller.Action: controller, action, http.method, http.route, http.status_code, action.param.*
.WithNetAmpoweringTracing() minimal-API endpoint: http.method, http.route, http.status_code, endpoint.arg.N
AddTraced*<TInterface, TImpl>() one span per method call of the service

EF Core: add NetAmpowering.Observability.EntityFrameworkCore (pre-release, install with --prerelease; then builder.AddEntityFrameworkCoreInstrumentation()). Database exceptions are recorded without their message (SQL parameter values), see RecordError.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  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 (1)

Showing the top 1 NuGet packages that depend on NetAmpowering.AspNetCore:

Package Downloads
NetAmpowering.Observability

Codeless OpenTelemetry instrumentation for Blazor Server. Automatic tracing for HTTP requests, SignalR circuits, component lifecycle, user events, SPA navigation, and business services via AOP (Castle DynamicProxy). Exports traces and metrics via OTLP to Grafana Cloud, Prometheus, Tempo, or any OpenTelemetry-compatible backend.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 85 10/17/2026