Table of Contents

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

T

Type of value for the metric.

Methods

Record(T, object)

Record the given value on the histogram.

void Record(T value, object tags)

Parameters

value T

Value to record. Currently this will always be a non-negative long.

tags object

Tags. This will be the same value/type as returned from CreateTags(object?, IReadOnlyCollection<KeyValuePair<string, object>>).