Commit 1ba0eb9b authored by Suhaimi Amir's avatar Suhaimi Amir 🙂

remove jaeger tracer

parent 10024400
Pipeline #4542 passed with stage
in 20 seconds
const configServer = require('cote-requester')('config', `${Math.random().toString(36).substring(7)} Config Lib : Reqs`);
const cote = require('cote');
const logger = require('logger');
const tracer = require('tracer').init('dx-config-plugin');
let configSubscriber = null;
......@@ -12,11 +11,8 @@ exports.get = async (name, parentSpan = false) => {
// process.exit();
// }
// }, 5000);
const span = tracer.startSpan('get.config', { childOf: parentSpan, tags: { 'span.kind': 'server' } });
span.setTag('config.name', name);
const configName = { name };
tracer.inject(span.context(), 'text_map', configName);
logger.info(`Retrieving config file "${name}"...`);
return configServer.send('config.get', configName)
......@@ -31,21 +27,12 @@ exports.get = async (name, parentSpan = false) => {
config = String(config);
}
span.setTag('success', true);
span.finish();
global.config[name] = config;
return Promise.resolve(config);
})
.catch((err) => {
logger.info(`Retrieving config file "${name}"... FAILED`);
console.log(err); // eslint-disable-line
span.setTag('error', true);
span.log({
event: 'error',
message: err.message,
});
span.finish();
return Promise.reject(err);
});
};
......
{
"name": "config",
"version": "1.0.5",
"version": "1.0.7",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......@@ -115,11 +115,6 @@
"amp": "0.3.1"
}
},
"ansi-color": {
"version": "0.2.1",
"resolved": "http://10.130.112.135:4873/ansi-color/-/ansi-color-0.2.1.tgz",
"integrity": "sha1-PnXAN0dSF1RO12Oo21cJ+prlv5o="
},
"ansi-escapes": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz",
......@@ -231,17 +226,6 @@
"concat-map": "0.0.1"
}
},
"bufrw": {
"version": "1.3.0",
"resolved": "http://10.130.112.135:4873/bufrw/-/bufrw-1.3.0.tgz",
"integrity": "sha512-jzQnSbdJqhIltU9O5KUiTtljP9ccw2u5ix59McQy4pV2xGhVLhRZIndY8GIrgh5HjXa6+QJ9AQhOd2QWQizJFQ==",
"requires": {
"ansi-color": "^0.2.1",
"error": "^7.0.0",
"hexer": "^1.5.0",
"xtend": "^4.0.0"
}
},
"callsite": {
"version": "1.0.0",
"resolved": "http://10.130.112.135:4873/callsite/-/callsite-1.0.0.tgz",
......@@ -566,15 +550,6 @@
"resolved": "http://10.130.112.135:4873/env-variable/-/env-variable-0.0.6.tgz",
"integrity": "sha512-bHz59NlBbtS0NhftmR8+ExBEekE7br0e01jw+kk0NDro7TtZzBYZ5ScGPs3OmwnpyfHTHOtr1Y6uedCdrIldtg=="
},
"error": {
"version": "7.0.2",
"resolved": "http://10.130.112.135:4873/error/-/error-7.0.2.tgz",
"integrity": "sha1-pfdf/02ZJhJt2sDqXcOOaJFTywI=",
"requires": {
"string-template": "~0.2.1",
"xtend": "~4.0.0"
}
},
"error-ex": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
......@@ -1041,24 +1016,6 @@
"integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=",
"dev": true
},
"hexer": {
"version": "1.5.0",
"resolved": "http://10.130.112.135:4873/hexer/-/hexer-1.5.0.tgz",
"integrity": "sha1-uGzoCFmOip0YksVx887dhvyfBlM=",
"requires": {
"ansi-color": "^0.2.1",
"minimist": "^1.1.0",
"process": "^0.10.0",
"xtend": "^4.0.0"
},
"dependencies": {
"minimist": {
"version": "1.2.0",
"resolved": "http://10.130.112.135:4873/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ="
}
}
},
"hosted-git-info": {
"version": "2.7.1",
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz",
......@@ -1217,18 +1174,6 @@
"integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
"dev": true
},
"jaeger-client": {
"version": "3.17.2",
"resolved": "http://10.130.112.135:4873/jaeger-client/-/jaeger-client-3.17.2.tgz",
"integrity": "sha512-19YloSidmKbrXHgecLWod8eXo7rm2ieUnsfg0ripTFGRCW5v2OWE96Gte4/tOQG/8N+T39VoLU2nMBdjbdMUJg==",
"requires": {
"node-int64": "^0.4.0",
"opentracing": "^0.13.0",
"thriftrw": "^3.5.0",
"uuid": "^3.2.1",
"xorshift": "^0.2.0"
}
},
"js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
......@@ -1321,11 +1266,6 @@
"winston": "^3.1.0"
}
},
"long": {
"version": "2.4.0",
"resolved": "http://10.130.112.135:4873/long/-/long-2.4.0.tgz",
"integrity": "sha1-n6GAux2VAM3CnEFWdmoZleH0Uk8="
},
"mime-db": {
"version": "1.43.0",
"resolved": "http://10.130.112.135:4873/mime-db/-/mime-db-1.43.0.tgz",
......@@ -1395,11 +1335,6 @@
"integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==",
"dev": true
},
"node-int64": {
"version": "0.4.0",
"resolved": "http://10.130.112.135:4873/node-int64/-/node-int64-0.4.0.tgz",
"integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs="
},
"normalize-package-data": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
......@@ -1470,11 +1405,6 @@
"mimic-fn": "^1.0.0"
}
},
"opentracing": {
"version": "0.13.0",
"resolved": "http://10.130.112.135:4873/opentracing/-/opentracing-0.13.0.tgz",
"integrity": "sha1-ajQUQvCdfYZrwR7QPeHjgo49aqs="
},
"optionator": {
"version": "0.8.2",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz",
......@@ -1638,11 +1568,6 @@
"integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
"dev": true
},
"process": {
"version": "0.10.1",
"resolved": "http://10.130.112.135:4873/process/-/process-0.10.1.tgz",
"integrity": "sha1-hCRXzFHP7XLcd1r+6vuMYDQ3JyU="
},
"process-nextick-args": {
"version": "2.0.1",
"resolved": "http://10.130.112.135:4873/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
......@@ -1948,11 +1873,6 @@
"resolved": "http://10.130.112.135:4873/stack-trace/-/stack-trace-0.0.10.tgz",
"integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA="
},
"string-template": {
"version": "0.2.1",
"resolved": "http://10.130.112.135:4873/string-template/-/string-template-0.2.1.tgz",
"integrity": "sha1-QpMuWYo1LQH8IuwzZ9nYTuxsmt0="
},
"string-width": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
......@@ -2052,16 +1972,6 @@
"integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",
"dev": true
},
"thriftrw": {
"version": "3.12.0",
"resolved": "http://10.130.112.135:4873/thriftrw/-/thriftrw-3.12.0.tgz",
"integrity": "sha512-4YZvR4DPEI41n4Opwr4jmrLGG4hndxr7387kzRFIIzxHQjarPusH4lGXrugvgb7TtPrfZVTpZCVe44/xUxowEw==",
"requires": {
"bufrw": "^1.3.0",
"error": "7.0.2",
"long": "^2.4.0"
}
},
"through": {
"version": "2.3.8",
"resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
......@@ -2082,14 +1992,6 @@
"resolved": "http://10.130.112.135:4873/to-array/-/to-array-0.1.4.tgz",
"integrity": "sha1-F+bBH3PdTz10zaek/zI46a2b+JA="
},
"tracer": {
"version": "git+https://gitlab.delyva.com/shared-lib/tracer.git#b1f201fa6248918576010c3f51ad3d8cc50227a9",
"from": "git+https://gitlab.delyva.com/shared-lib/tracer.git",
"requires": {
"jaeger-client": "^3.15.0",
"logger": "git+https://gitlab.delyva.com/shared-lib/logger.git"
}
},
"triple-beam": {
"version": "1.3.0",
"resolved": "http://10.130.112.135:4873/triple-beam/-/triple-beam-1.3.0.tgz",
......@@ -2251,16 +2153,6 @@
"resolved": "http://10.130.112.135:4873/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz",
"integrity": "sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4="
},
"xorshift": {
"version": "0.2.1",
"resolved": "http://10.130.112.135:4873/xorshift/-/xorshift-0.2.1.tgz",
"integrity": "sha1-/NgiZ+k1HBPw+5xzMH8lMx0pxjo="
},
"xtend": {
"version": "4.0.2",
"resolved": "http://10.130.112.135:4873/xtend/-/xtend-4.0.2.tgz",
"integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="
},
"yeast": {
"version": "0.1.2",
"resolved": "http://10.130.112.135:4873/yeast/-/yeast-0.1.2.tgz",
......
{
"name": "config",
"version": "1.0.6",
"version": "1.0.7",
"description": "Config getter/parser",
"main": "index.js",
"scripts": {
......@@ -12,8 +12,7 @@
"dependencies": {
"cote": "^0.20.0",
"cote-requester": "git+https://gitlab.delyva.com/shared-lib/cote-requester.git",
"logger": "git+https://gitlab.delyva.com/shared-lib/logger.git",
"tracer": "git+https://gitlab.delyva.com/shared-lib/tracer.git"
"logger": "git+https://gitlab.delyva.com/shared-lib/logger.git"
},
"devDependencies": {
"eslint-config-airbnb": "^17.1.0",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment