add#
Fully qualified name: omni::observability::add
Defined in omni/observability/IMetrics.h
-
template<class ValueType, class T>
void omni::observability::add( - const carb::ObjectPtr<ICounter<ValueType>> &counter,
- T value,
- std::initializer_list<Attribute> attributes,
Add a value to a counter with initializer list attributes.
Remark
If the
countercarb::ObjectPtr is null, this function is a no-op.- Parameters:
counter – [in] The counter instrument to add to (null pointer is permitted).
value – [in] The value to add to the counter.
attributes – [in] Initializer list of attributes to associate with this measurement.