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

System.Diagnostics.Metrics.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.
namespace System.Diagnostics.Metrics { public sealed class Histogram<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); } }