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

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.
public void Record(T value)

Record the Gauge current value.

public void Record(T value, KeyValuePair<string, object> tag)

Record the Gauge current value.

public void Record(T value, KeyValuePair<string, object> tag1, KeyValuePair<string, object> tag2)

Record the Gauge current value.

public void Record(T value, KeyValuePair<string, object> tag1, KeyValuePair<string, object> tag2, KeyValuePair<string, object> tag3)

Record the Gauge current value.

public void Record(T value, ReadOnlySpan<KeyValuePair<string, object>> tags)

Record the Gauge current value.

public void Record(T value, KeyValuePair<string, object>[] tags)

Record the Gauge current value.

public void Record(T value, ref TagList tagList)

Record the Gauge current value.