diff --git a/lib/session/call-session.js b/lib/session/call-session.js index f927a362..fb66a653 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -1292,7 +1292,7 @@ class CallSession extends Emitter { } else { const {queue, command} = resolution; - const {span} = this.rootSpan.startChildSpan(`recv: ${command}`); + const {span} = this.rootSpan.startChildSpan(`recv command: ${command}`); span.setAttributes({ 'async.request.queue': queue, }); diff --git a/lib/tasks/config.js b/lib/tasks/config.js index a7737fbf..50bcae1d 100644 --- a/lib/tasks/config.js +++ b/lib/tasks/config.js @@ -49,7 +49,7 @@ class TaskConfig extends Task { /* reset recognizer and/or synthesizer to default values? */ if (this.data.reset) { if (typeof this.data.reset === 'string') this.data.reset = [this.data.reset]; - phrase.push(`reset ${this.data.reset.join(',')}`); + if (this.data.reset.length) phrase.push(`reset ${this.data.reset.join(',')}`); } else this.data.reset = [];