Commit 991957c1 authored by Suhaimi Amir's avatar Suhaimi Amir

fix tracing span reference

parent 2edb870b
Pipeline #1619 passed with stage
in 19 seconds
......@@ -5,14 +5,13 @@ const tracer = require('tracer').init('dx-config-plugin');
let configSubscriber = null;
exports.get = async (name, spanContext = {}) => {
exports.get = async (name, parentSpan = {}) => {
// setTimeout(() => {
// if (typeof global.config[name] === 'undefined') {
// logger.info(`Timed out while retrieving config "${name}", exiting...`);
// process.exit();
// }
// }, 5000);
const parentSpan = tracer.extract('text_map', spanContext);
const span = tracer.startSpan('get.config', { childOf: parentSpan, tags: { 'span.kind': 'server' } });
span.setTag('config.name', name);
......
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