mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
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:
@@ -102,7 +102,7 @@ class HttpRequestor extends BaseRequestor {
|
||||
* @param {string} [hook.password] - if basic auth is protecting the endpoint
|
||||
* @param {object} [params] - request parameters
|
||||
*/
|
||||
async request(type, hook, params, httpHeaders = {}) {
|
||||
async request(type, hook, params, httpHeaders = {}, span) {
|
||||
/* jambonz:error only sent over ws */
|
||||
if (type === 'jambonz:error') return;
|
||||
|
||||
@@ -131,7 +131,7 @@ class HttpRequestor extends BaseRequestor {
|
||||
this.close();
|
||||
this.emit('handover', requestor);
|
||||
}
|
||||
return requestor.request('session:new', hook, params, httpHeaders);
|
||||
return requestor.request('session:new', hook, params, httpHeaders, span);
|
||||
}
|
||||
|
||||
let newClient;
|
||||
|
||||
Reference in New Issue
Block a user