Package io.opentelemetry.api.metrics
Interface ObservableLongMeasurement
- All Superinterfaces:
ObservableMeasurement
An interface for observing measurements with
long values.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidobserve(long value) Deprecated.default voidobserve(long value, Attributes attributes) Deprecated.voidrecord(long value) Records a measurement.voidrecord(long value, Attributes attributes) Records a measurement with a set of attributes.
-
Method Details
-
observe
Deprecated.Userecord(long).Records a measurement.- Parameters:
value- The measurement amount.
-
observe
Deprecated.Records a measurement with a set of attributes.- Parameters:
value- The measurement amount.attributes- A set of attributes to associate with the count.
-
record
void record(long value) Records a measurement.- Parameters:
value- The measurement amount.
-
record
Records a measurement with a set of attributes.- Parameters:
value- The measurement amount.attributes- A set of attributes to associate with the count.
-
record(long).