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
T
Type of value for the metric.
Methods
Add(T, object)
Add the given value to the counter.
void Add(T value, object tags)
Parameters
value
TValue to add. Currently this will always be a non-negative
long
.tags
objectTags. This will be the same value/type as returned from CreateTags(object?, IReadOnlyCollection<KeyValuePair<string, object>>).