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>metricProducersprivate MeterProviderSharedStatesharedState
-
Constructor Summary
Constructors Modifier Constructor Description privateSdkCollectionRegistration(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 registeredMetricProducers.
-
-
-
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:CollectionRegistrationCollect all metrics, including metrics from the SDK and any registeredMetricProducers.If
MetricReader.getMemoryMode()is configured toMemoryMode.REUSABLE_DATAdo 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:
collectAllMetricsin interfaceCollectionRegistration
-
-