Interface SynchronousMetricStorage
-
- All Superinterfaces:
MetricStorage
,WriteableMetricStorage
- All Known Implementing Classes:
DefaultSynchronousMetricStorage
,EmptyMetricStorage
public interface SynchronousMetricStorage extends MetricStorage, WriteableMetricStorage
Stores aggregatedMetricData
for synchronous instruments.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Field Summary
-
Fields inherited from interface io.opentelemetry.sdk.metrics.internal.state.MetricStorage
CARDINALITY_OVERFLOW, DEFAULT_MAX_CARDINALITY
-
-
Method Summary
Static Methods Modifier and Type Method Description static <T extends PointData,U extends ExemplarData>
SynchronousMetricStoragecreate(RegisteredReader registeredReader, RegisteredView registeredView, InstrumentDescriptor instrumentDescriptor, ExemplarFilter exemplarFilter)
Constructs metric storage for a given synchronous instrument and view.static SynchronousMetricStorage
empty()
Returns metric storage which doesn't store or generate any metrics.-
Methods inherited from interface io.opentelemetry.sdk.metrics.internal.state.MetricStorage
collect, getMetricDescriptor, isEmpty
-
Methods inherited from interface io.opentelemetry.sdk.metrics.internal.state.WriteableMetricStorage
isEnabled, recordDouble, recordLong
-
-
-
-
Method Detail
-
empty
static SynchronousMetricStorage empty()
Returns metric storage which doesn't store or generate any metrics.
-
create
static <T extends PointData,U extends ExemplarData> SynchronousMetricStorage create(RegisteredReader registeredReader, RegisteredView registeredView, InstrumentDescriptor instrumentDescriptor, ExemplarFilter exemplarFilter)
Constructs metric storage for a given synchronous instrument and view.- Returns:
- The storage, or
empty()
if the instrument should not be recorded.
-
-