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

Function convertLabelsAndValues

lib/histogram.js:278–288  ·  view source on GitHub ↗
(labels, value)

Source from the content-addressed store, hash-verified

276}
277
278function convertLabelsAndValues(labels, value) {
279 return isObject(labels)
280 ? {
281 labels,
282 value,
283 }
284 : {
285 value: labels,
286 labels: {},
287 };
288}
289
290function extractBucketValuesForExport(histogram) {
291 const name = `${histogram.name}_bucket`;

Callers 1

observeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected