ProgressOnderwijsUtils.Metrics
1.0.0
dotnet add package ProgressOnderwijsUtils.Metrics --version 1.0.0
NuGet\Install-Package ProgressOnderwijsUtils.Metrics -Version 1.0.0
<PackageReference Include="ProgressOnderwijsUtils.Metrics" Version="1.0.0" />
<PackageVersion Include="ProgressOnderwijsUtils.Metrics" Version="1.0.0" />
<PackageReference Include="ProgressOnderwijsUtils.Metrics" />
paket add ProgressOnderwijsUtils.Metrics --version 1.0.0
#r "nuget: ProgressOnderwijsUtils.Metrics, 1.0.0"
#:package ProgressOnderwijsUtils.Metrics@1.0.0
#addin nuget:?package=ProgressOnderwijsUtils.Metrics&version=1.0.0
#tool nuget:?package=ProgressOnderwijsUtils.Metrics&version=1.0.0
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0-windows7.0 is compatible. |
-
net11.0-windows7.0
- OpenTelemetry.Extensions.Hosting (>= 1.20.1)
- OpenTelemetry.Instrumentation.SqlClient (>= 1.20.1)
- ProgressOnderwijsUtils (>= 120.2.0)
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