Microsoft.Extensions.Diagnostics.Metrics.Testing Namespace

Contains classes for testing metrics, including tools for collecting and working with measurements from instruments.

Classes

CollectedMeasurement<T>

Represents a single measurement performed by an instrument.

MeasurementExtensions

Extensions to simplify working with lists of measurements.

MetricCollector<T>

Collects the measurements published from an Instrument<T> or ObservableInstrument<T>.