Package io.opentelemetry.api.metrics
Interface ObservableDoubleMeasurement
-
- All Superinterfaces:
ObservableMeasurement
public interface ObservableDoubleMeasurement extends ObservableMeasurement
An interface for observing measurements withdoublevalues.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidobserve(double value)Records a measurement.voidobserve(double value, io.opentelemetry.api.common.Attributes attributes)Records a measurement with a set of attributes.
-
-
-
Method Detail
-
observe
void observe(double value)
Records a measurement.- Parameters:
value- The measurement amount. MUST be non-negative.
-
observe
void observe(double value, io.opentelemetry.api.common.Attributes attributes)Records a measurement with a set of attributes.- Parameters:
value- The measurement amount. MUST be non-negative.attributes- A set of attributes to associate with the count.
-
-