<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="10.0.4" />

System.Diagnostics.Metrics.Gauge<T>

public sealed class Gauge<T> : Instrument<T> where T : struct
The Gauge is an instrument used to record non-additive values whenever changes occur. For example, record the room background noise level value when changes occur.
namespace System.Diagnostics.Metrics { public sealed class Gauge<T> : Instrument<T> where T : struct { public void Record(T value); public void Record(T value, KeyValuePair<string, object> tag); public void Record(T value, KeyValuePair<string, object> tag1, KeyValuePair<string, object> tag2); public void Record(T value, KeyValuePair<string, object> tag1, KeyValuePair<string, object> tag2, KeyValuePair<string, object> tag3); public void Record(T value, ReadOnlySpan<KeyValuePair<string, object>> tags); public void Record(T value, params KeyValuePair<string, object>[] tags); public void Record(T value, ref TagList tagList); } }