NetAmpowering.AspNet.WebApi 1.0.0

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

NetAmpowering.AspNet.WebApi

OpenTelemetry tracing for ASP.NET Web API 2 on .NET Framework 4.7.2+: one span per ApiController action (Controller.Action), child of the HTTP span, with route, method, status code and primitive parameters.

Install-Package NetAmpowering.AspNet        # OpenTelemetry pipeline (System.Web host)
Install-Package NetAmpowering.AspNet.WebApi
  • IIS / IIS Express hosting: automatic, the filter is added to GlobalConfiguration.Configuration before Application_Start.
  • OWIN self-host: config.AddNetAmpoweringTracing(); (idempotent), then start OpenTelemetry with AspNetTelemetry.Start().

Disable parameter capture: WebApiObservability.Options.CaptureActionParameters = false;. Errors are recorded without any SQL parameter value (see ActivityErrorExtensions.RecordError). Configuration (OpenTelemetry:* in appSettings, httpRuntime targetFramework="4.7.2", netstandard assembly) is the same as for NetAmpowering.AspNet.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 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.

Version Downloads Last Updated
1.0.0 42 10/17/2026