AdultingSession: change bindings on logger to include new traceId

This commit is contained in:
Dave Horton
2022-04-04 13:38:38 -04:00
parent 13c38a9875
commit 3456c51118

View File

@@ -363,8 +363,9 @@ class SingleDialer extends Emitter {
this.dlg.callSid = this.callSid;
this.dlg.linkedSpanId = this.rootSpan.traceId;
const rootSpan = new RootSpan('outbound-call', this.dlg);
logger.bindings({traceId: rootSpan.traceId, callSid: this.callSid, callId: this.dlg.sip.callId});
const cs = new AdultingCallSession({
logger: this.logger,
logger,
singleDialer: this,
application,
callInfo: this.callInfo,