function recordValue()

in src/autoscaler-common/counters-base.js [395:401]


function recordValue(counterName, value, counterAttributes) {
  const counter = COUNTERS.get(counterName);
  if (!counter?.histogram) {
    throw new Error('Unknown counter: ' + counterName);
  }
  counter.histogram.record(value, counterAttributes);
}