Template Class ObserverResultT

Inheritance Relationships

Derived Type

Class Documentation

template<class T>
class ObserverResultT

ObserverResultT class is necessary for the callback recording asynchronous instrument use.

Subclassed by opentelemetry::sdk::metrics::ObserverResultT< T >

Public Functions

virtual ~ObserverResultT() = default
virtual void Observe(T value) noexcept = 0
virtual void Observe(T value, const common::KeyValueIterable &attributes) noexcept = 0
template<class U, nostd::enable_if_t<common::detail::is_key_value_iterable<U>::value>* = nullptr>
inline void Observe(T value, const U &attributes) noexcept
inline void Observe(T value, std::initializer_list<std::pair<nostd::string_view, common::AttributeValue>> attributes) noexcept