LongCounter Interface
public interface LongCounter
A counter instrument that records long
values.
Counters only allow adding positive values, and guarantee the resulting metrics will be always-increasing monotonic sums.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract void |
add(long value, TelemetryAttributes attributes, Context context)
Records a value with a set of attributes. |
abstract boolean |
isEnabled()
Flag indicating if metric implementation is detected and functional, use it to minimize performance impact associated with metrics, e. |
Method Details
add
public abstract void add(long value, TelemetryAttributes attributes, Context context)
Records a value with a set of attributes.
Parameters:
isEnabled
public abstract boolean isEnabled()
Flag indicating if metric implementation is detected and functional, use it to minimize performance impact associated with metrics, e.g. measuring latency.
Returns:
true
if enabled, false
otherwiseApplies to
Azure SDK for Java