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

Function standardizeCounterName

lib/registry.js:237–239  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

235 return str.replace(/\\/g, '\\\\').replace(/\n/g, '\\n');
236}
237function standardizeCounterName(name) {
238 return name.replace(/_total$/, '');
239}
240
241module.exports = Registry;
242module.exports.globalRegistry = new Registry();

Callers 1

metricsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected