ProgressOnderwijsUtils.Metrics 1.0.0

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

ProgressOnderwijsUtils.Metrics

Progress Onderwijs Utils Metrics - An in-process metrics collector.

It listens to the http.server.request.duration and http.server.active_requests instruments of ASP.NET Core and the db.client.operation.duration instrument of the OpenTelemetry SqlClient instrumentation, and samples the thread pool and the SqlClient connection pools. Everything is kept per second in lock-free ring buffers, from which a window of seconds can be collected at any time.

The application supplies the dimensions (which database and which endpoint a measurement belongs to) and decides what to do with a collection; this package contains no persistence. To recognise the database of a measurement, read the db.namespace tag with SqlClientDbNamespace.Classify: for a named SQL Server instance that tag is {instance}.{database} rather than just the database.

Register it at startup with services.AddProgressOnderwijsMetrics(collector, samplingFailed): this enables the OpenTelemetry SqlClient instrumentation and starts the collector before the web server accepts its first request.

Product Compatible and additional computed target framework versions.
.NET net11.0-windows7.0 is compatible. 
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 0 11/19/2026

Initial version