DoubleHistogram Interface
public interface DoubleHistogram
A histogram instrument that records long values.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract boolean |
isEnabled()
Flag indicating if metric implementation is detected and functional, use it to minimize performance impact associated with metrics, e. |
| abstract void |
record(double value, TelemetryAttributes attributes, Context context)
Records a value with a set of attributes. |
Method Details
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 otherwiserecord
public abstract void record(double value, TelemetryAttributes attributes, Context context)
Records a value with a set of attributes.
Parameters: