@mojaloop/central-services-metrics
Advanced tools
Comparing version 12.4.0 to 12.4.1
@@ -82,2 +82,3 @@ /***** | ||
this._summaries = {}; | ||
/** Object containing the counter values */ | ||
this._counters = {}; | ||
@@ -101,3 +102,3 @@ /** | ||
} | ||
// configure detault metrics | ||
// configure default metrics | ||
if (options.defaultMetrics !== false) | ||
@@ -110,5 +111,9 @@ client.collectDefaultMetrics(normalisedOptions); | ||
_this._alreadySetup = true; | ||
_this._setupDefaultServiceMetrics(); | ||
// return true if we are setup | ||
return true; | ||
}; | ||
this._setupDefaultServiceMetrics = function () { | ||
_this.getCounter('errorCount', 'Error count', ['code', 'system', 'operation', 'step']); | ||
}; | ||
/** | ||
@@ -115,0 +120,0 @@ * Get the histogram values for given name |
{ | ||
"name": "@mojaloop/central-services-metrics", | ||
"version": "12.4.0", | ||
"version": "12.4.1", | ||
"description": "Shared code for metrics generation", | ||
@@ -68,3 +68,3 @@ "main": "./dist/index.js", | ||
"audit-ci": "^7.1.0", | ||
"debug": "4.3.7", | ||
"debug": "4.4.0", | ||
"joi": "^17.13.3", | ||
@@ -71,0 +71,0 @@ "npm-check-updates": "17.1.11", |
Sorry, the diff of this file is not supported yet
33685
345