From 3456c51118461632281f96f542213fbf129c311e Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Mon, 4 Apr 2022 13:38:38 -0400 Subject: [PATCH] AdultingSession: change bindings on logger to include new traceId --- lib/utils/place-outdial.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/place-outdial.js b/lib/utils/place-outdial.js index d3cfd1fb..42aeb130 100644 --- a/lib/utils/place-outdial.js +++ b/lib/utils/place-outdial.js @@ -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,