@chainlink/external-adapter-framework 0.0.62 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/metrics/index.js +5 -0
- package/package.json +3 -3
package/metrics/index.js
CHANGED
|
@@ -34,6 +34,11 @@ const fastify_1 = __importDefault(require("fastify"));
|
|
|
34
34
|
const path_1 = require("path");
|
|
35
35
|
const error_1 = require("../validation/error");
|
|
36
36
|
const logger = (0, util_1.makeLogger)('Metrics');
|
|
37
|
+
/**
|
|
38
|
+
* `prom-client` is shared between v2 and v3 when both are dependencies, resulting in metric collision errors
|
|
39
|
+
* Clearing metrics on import will wipe v2's existing register so we can replace them with v3's metrics
|
|
40
|
+
**/
|
|
41
|
+
client.register.clear();
|
|
37
42
|
function setupMetricsServer(name, config) {
|
|
38
43
|
const metricsApp = (0, fastify_1.default)({
|
|
39
44
|
logger: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainlink/external-adapter-framework",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.63",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"generate-docs": "typedoc src/**/*.ts",
|
|
22
22
|
"lint-fix": "eslint --fix ./src && prettier --write ./src/**/*.ts ./*.{json,js,yaml}",
|
|
23
23
|
"lint": "eslint ./src && prettier --check ./src/**/*.ts ./*.{json,js,yaml}",
|
|
24
|
-
"test-debug": "
|
|
25
|
-
"test": "
|
|
24
|
+
"test-debug": "LOG_LEVEL=trace DEBUG=true EA_PORT=0 c8 ava --verbose",
|
|
25
|
+
"test": "LOG_LEVEL=error EA_PORT=0 c8 ava",
|
|
26
26
|
"verify": "yarn lint && yarn build && yarn build -p ./test/tsconfig.json && yarn test"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|