Template Class Histogram
Defined in File meter.h
Inheritance Relationships
Derived Type
public opentelemetry::metrics::NoopHistogram< T >
(Template Class NoopHistogram)
Class Documentation
-
template<class T>
class Histogram A histogram instrument that records values.
Subclassed by opentelemetry::metrics::NoopHistogram< 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.
context – The explicit context to associate with this measurement.
-
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 value..
context – The explicit context to associate with this measurement.
-
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