record#

Fully qualified name: omni::observability::record

Defined in omni/observability/IMetrics.h

template<class ValueType, class T, class ...A>
void omni::observability::record(
const carb::ObjectPtr<IGauge<ValueType>> &gauge,
T value,
A&&... a,
) noexcept#

Record a value in a gauge with variadic attributes.

Remark

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

Parameters:
  • gauge[in] The gauge instrument to record to (null pointer is permitted).

  • value[in] The value to record in the gauge.

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