Package io.opentelemetry.sdk.metrics
Class SdkMeter.MultiWritableMetricStorage
java.lang.Object
io.opentelemetry.sdk.metrics.SdkMeter.MultiWritableMetricStorage
- All Implemented Interfaces:
WriteableMetricStorage
- Enclosing class:
SdkMeter
private static class SdkMeter.MultiWritableMetricStorage
extends Object
implements WriteableMetricStorage
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MultiWritableMetricStorage
(List<? extends WriteableMetricStorage> storages) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the storage is actively recording measurements, andfalse
otherwise (i.e.void
recordDouble
(double value, Attributes attributes, Context context) Records a measurement.void
recordLong
(long value, Attributes attributes, Context context) Records a measurement.
-
Field Details
-
storages
-
-
Constructor Details
-
MultiWritableMetricStorage
-
-
Method Details
-
recordLong
Description copied from interface:WriteableMetricStorage
Records a measurement.- Specified by:
recordLong
in interfaceWriteableMetricStorage
-
recordDouble
Description copied from interface:WriteableMetricStorage
Records a measurement.- Specified by:
recordDouble
in interfaceWriteableMetricStorage
-
isEnabled
public boolean isEnabled()Description copied from interface:WriteableMetricStorage
Returnstrue
if the storage is actively recording measurements, andfalse
otherwise (i.e. noop / empty metric storage is installed).- Specified by:
isEnabled
in interfaceWriteableMetricStorage
-