* Initialize the metrics for the given combination of labels to zero * @param {object} labels - Object with labels where key is the label key and value is label value. Can only be one level deep * @returns {void}
(labels)
| 134 | * @returns {void} |
| 135 | */ |
| 136 | zero(labels) { |
| 137 | const hash = hashObject(labels, this.sortedLabelNames); |
| 138 | this.hashMap[hash] = createBaseValues( |
| 139 | labels, |
| 140 | this.bucketValues, |
| 141 | this.bucketExemplars, |
| 142 | ); |
| 143 | } |
| 144 | |
| 145 | /** |
| 146 | * Start a timer that could be used to logging durations |
no test coverage detected