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

Histogram<T>

public sealed class Histogram<T> : Instrument<T> where T : struct
Represents a metrics instrument that can be used to report arbitrary values that are likely to be statistically meaningful, for example, the request duration. Call CreateHistogram<T> to create a Histogram object.
public void Record(T value)

Records a measurement value.

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

Records a measurement value.

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

Records a measurement value.

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

Records a measurement value.

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

Records a measurement value.

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

Records a measurement value.

public void Record(T value, ref TagList tagList)

Records a measurement value.