Package io.opentelemetry.sdk.metrics
Class SdkMeterProvider.SdkCollectionRegistration
java.lang.Object
io.opentelemetry.sdk.metrics.SdkMeterProvider.SdkCollectionRegistration
- All Implemented Interfaces:
CollectionRegistration
- Enclosing class:
SdkMeterProvider
private static class SdkMeterProvider.SdkCollectionRegistration
extends Object
implements CollectionRegistration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<MetricProducer> private final MeterProviderSharedState
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SdkCollectionRegistration
(List<MetricProducer> metricProducers, MeterProviderSharedState sharedState) -
Method Summary
Modifier and TypeMethodDescriptionCollect all metrics, including metrics from the SDK and any registeredMetricProducer
s.
-
Field Details
-
metricProducers
-
-
Constructor Details
-
Method Details
-
collectAllMetrics
Description copied from interface:CollectionRegistration
Collect all metrics, including metrics from the SDK and any registeredMetricProducer
s.If
MetricReader.getMemoryMode()
is configured toMemoryMode.REUSABLE_DATA
do not keep the result or any of its contained objects as they are to be reused to return the result for the next call to this method.- Specified by:
collectAllMetrics
in interfaceCollectionRegistration
-