A deep dive into using `MeterListener` from the `System.Diagnostics.Metrics` APIs to consume and aggregate metrics in-process within a .NET application. The post walks through building a `MetricManager` wrapper class that subscribes to specific ASP.NET Core and .NET runtime instruments, handles both standard and observable

17m read timeFrom andrewlock.net
Post cover image
Table of contents
Creating the test ASP.NET Core appRecording metrics with MeterListenerCreating a service to display the resultsSummary

Sort: