Class AsyncMetricStorage

Inheritance Relationships

Base Types

  • public opentelemetry::sdk::metrics::MetricStorage

  • public opentelemetry::sdk::metrics::AsyncWritableMetricStorage

Class Documentation

class AsyncMetricStorage : public opentelemetry::sdk::metrics::MetricStorage, public opentelemetry::sdk::metrics::AsyncWritableMetricStorage

Public Functions

inline  AsyncMetricStorage (InstrumentDescriptor instrument_descriptor, const AggregationType aggregation_type, nostd::shared_ptr< ExemplarReservoir > &&exemplar_reservoir OPENTELEMETRY_MAYBE_UNUSED, const AggregationConfig *aggregation_config)
template<class T>
inline void Record(const std::unordered_map<MetricAttributes, T, AttributeHashGenerator> &measurements, opentelemetry::common::SystemTimestamp) noexcept
inline void RecordLong(const std::unordered_map<MetricAttributes, int64_t, AttributeHashGenerator> &measurements, opentelemetry::common::SystemTimestamp observation_time) noexcept override
inline void RecordDouble(const std::unordered_map<MetricAttributes, double, AttributeHashGenerator> &measurements, opentelemetry::common::SystemTimestamp observation_time) noexcept override
inline bool Collect(CollectorHandle *collector, nostd::span<std::shared_ptr<CollectorHandle>> collectors, opentelemetry::common::SystemTimestamp sdk_start_ts, opentelemetry::common::SystemTimestamp collection_ts, nostd::function_ref<bool(MetricData)> metric_collection_callback) noexcept override