add ws msgid to telemetry span if it's ws requestor (#1215)

* add ws msgid to telemetry span if it's ws requestor

* wip
This commit is contained in:
Hoan Luu Huu
2025-05-28 18:51:59 +07:00
committed by GitHub
parent 760394aa5e
commit 690a7fcd55
4 changed files with 12 additions and 8 deletions

View File

@@ -438,7 +438,7 @@ module.exports = function(srf, logger) {
span = obj.span;
const b3 = rootSpan.getTracingPropagation();
const httpHeaders = b3 && { b3 };
json = await app.requestor.request('session:new', app.call_hook, params, httpHeaders);
json = await app.requestor.request('session:new', app.call_hook, params, httpHeaders, span);
}
app.tasks = normalizeJambones(logger, json).map((tdata) => makeTask(logger, tdata));