MCPcopy
hub / github.com/prometheus/client_js / findBound

Function findBound

lib/histogram.js:221–229  ·  view source on GitHub ↗
(upperBounds, value)

Source from the content-addressed store, hash-verified

219}
220
221function findBound(upperBounds, value) {
222 for (let i = 0; i < upperBounds.length; i++) {
223 const bound = upperBounds[i];
224 if (value <= bound) {
225 return bound;
226 }
227 }
228 return -1;
229}
230
231function observe(labels) {
232 return value => {

Callers 2

updateExemplarMethod · 0.85
observeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected