Package com.azure.core.util.metrics
Interface DoubleHistogram
public interface DoubleHistogram
A histogram instrument that records
long values.-
Method Summary
Modifier and TypeMethodDescriptionbooleanFlag indicating if metric implementation is detected and functional, use it to minimize performance impact associated with metrics, e.g.voidrecord(double value, TelemetryAttributes attributes, Context context) Records a value with a set of attributes.
-
Method Details
-
record
Records a value with a set of attributes.- Parameters:
value- The amount of the measurement.attributes- Collection of attributes representing metric dimensions.context- The explicit context to associate with this measurement.
-
isEnabled
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:
trueif enabled,falseotherwise
-