Interface ICustomMetricHistogram<T>
- Namespace
- Temporalio.Runtime
- Assembly
- Temporalio.dll
Interface to implement for a histogram metric.
public interface ICustomMetricHistogram<T> : ICustomMetric<T> where T : struct
Type Parameters
TType of value for the metric.
Methods
Record(T, object)
Record the given value on the histogram.
void Record(T value, object tags)
Parameters
valueTValue to record. Currently this will always be a non-negative
long.tagsobjectTags. This will be the same value/type as returned from CreateTags(object?, IReadOnlyCollection<KeyValuePair<string, object>>).