Interface ICustomMetricCounter<T>
- Namespace
- Temporalio.Runtime
- Assembly
- Temporalio.dll
Interface to implement for a counter metric.
public interface ICustomMetricCounter<T> : ICustomMetric<T> where T : struct
Type Parameters
TType of value for the metric.
Methods
Add(T, object)
Add the given value to the counter.
void Add(T value, object tags)
Parameters
valueTValue to add. 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>>).