An interface to allow the recording metrics.
Metrics are used for recording pre-defined aggregation (
or raw values (
ValueRecorder) in which the aggregation and labels
for the exported metric are deferred.
Creates a new
UpDownCounter metric. UpDownCounter is a synchronous
instrument and very similar to Counter except that Add(increment)
supports negative increments. It is generally useful for capturing changes
in an amount of resources used, or any quantity that rises and falls
during a request.
Example uses for UpDownCounter:
the name of the metric.