Template Class Histogram
Defined in File meter.h
Inheritance Relationships
Derived Types
public opentelemetry::metrics::NoopHistogram< T >
(Template Class NoopHistogram)public opentelemetry::sdk::metrics::LongHistogram< T >
(Template Class LongHistogram)
Class Documentation
-
template<class T>
class Histogram A histogram instrument that records values.
Subclassed by opentelemetry::metrics::NoopHistogram< T >, opentelemetry::sdk::metrics::LongHistogram< T >
Public Functions
-
virtual void Record(T value, const context::Context &context) noexcept = 0
Records a value.
- Parameters:
value – The measurement value. MUST be non-negative.
-
virtual void Record(T value, const common::KeyValueIterable &attributes, const context::Context &context) noexcept = 0
Records a value with a set of attributes.
- Parameters:
value – The measurement value. MUST be non-negative.
attributes – A set of attributes to associate with the count.
-
template<class U, nostd::enable_if_t<common::detail::is_key_value_iterable<U>::value>* = nullptr>
inline void Record(T value, const U &attributes, const context::Context &context) noexcept
-
inline void Record(T value, std::initializer_list<std::pair<nostd::string_view, common::AttributeValue>> attributes, const context::Context &context) noexcept
-
virtual void Record(T value, const context::Context &context) noexcept = 0