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 authored and GitHub committed 2025-05-28 07:51:59 -04:00
1 parent 760394aa5e
commit 690a7fcd55
4 files changed
+12 -8

No files matched your search

+1 -1
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));