<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="8.0.0-preview.2.23128.3" />

ObservableUpDownCounter<T>

public sealed class ObservableUpDownCounter<T> : ObservableInstrument<T> where T : struct
ObservableUpDownCounter is a metrics observable Instrument which reports increasing or decreasing value(s) when the instrument is being observed. e.g. the process heap size or the approximate number of items in a lock-free circular buffer. Use Meter.CreateObservableUpDownCounter methods to create an ObservableUpDownCounter object.