Interface SynchronousMetricStorage
- All Superinterfaces:
MetricStorage,WriteableMetricStorage
- All Known Implementing Classes:
DefaultSynchronousMetricStorage,EmptyMetricStorage
Stores aggregated
MetricData 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 MethodsModifier and TypeMethodDescriptionstatic <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 SynchronousMetricStorageempty()Returns metric storage which doesn't store or generate any metrics.Methods inherited from interface io.opentelemetry.sdk.metrics.internal.state.MetricStorage
collect, getMetricDescriptor, isEmptyMethods inherited from interface io.opentelemetry.sdk.metrics.internal.state.WriteableMetricStorage
isEnabled, recordDouble, recordLong
-
Method Details
-
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.
-