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

Histogram<T>

public sealed class Histogram<T> : Instrument<T> where T : struct
The histogram is a metrics Instrument which can be used to report arbitrary values that are likely to be statistically meaningful. e.g. the request duration. Use CreateHistogram<T> method to create the Histogram object.
public void Record(T value)

Record a measurement value.

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

Record a measurement value.

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

Record a measurement value.

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

Record a measurement value.

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

Record a measurement value.

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

Record a measurement value.

public void Record(T value, ref TagList tagList)

Record a measurement value.