The System.Diagnostics.Metrics APIs were originally introduced as a built-in in feature in .NET 6, but are also supported in earlier versions of .NET Core and .NET Framework using the System.Diagnostics.DiagnosticSource NuGet package. The metrics APIs provide a way to both create and report on metrics generated by an application, such as simple counters, gauges, or histograms of values.
In this series I discuss various aspects of these APIs. I describe some of the core concepts, show how to use various parts of the APIs both for producing metrics and for consuming them, and discuss some of the additional associated aspects such as source generators.
