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 java.lang.Object implements CollectionRegistration
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<MetricProducer>
metricProducers
private MeterProviderSharedState
sharedState
-
Constructor Summary
Constructors Modifier Constructor Description private
SdkCollectionRegistration(java.util.List<MetricProducer> metricProducers, MeterProviderSharedState sharedState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<MetricData>
collectAllMetrics()
Collect all metrics, including metrics from the SDK and any registeredMetricProducer
s.
-
-
-
Field Detail
-
metricProducers
private final java.util.List<MetricProducer> metricProducers
-
sharedState
private final MeterProviderSharedState sharedState
-
-
Constructor Detail
-
SdkCollectionRegistration
private SdkCollectionRegistration(java.util.List<MetricProducer> metricProducers, MeterProviderSharedState sharedState)
-
-
Method Detail
-
collectAllMetrics
public java.util.Collection<MetricData> 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
-
-