add#

Fully qualified name: omni::observability::add

Defined in omni/observability/IMetrics.h

template<class ValueType, class T, class ...A>
void omni::observability::add(
const carb::ObjectPtr<IUpDownCounter<ValueType>> &upDownCounter,
T value,
A&&... a,
) noexcept#

Add a value to an up/down counter with variadic attributes.

Remark

If the upDownCounter carb::ObjectPtr is null, this function is a no-op.

Parameters:
  • upDownCounter[in] The up/down counter instrument to add to (null pointer is permitted).

  • value[in] The value to add to the up/down counter.

  • a[in] Variadic list of attributes to associate with this measurement.