tracing usability

This commit is contained in:
Dave Horton
2023-05-08 13:47:10 -04:00
parent 5043edfd4e
commit 1b91e8d0a0
2 changed files with 4 additions and 3 deletions

View File

@@ -784,6 +784,7 @@ class CallSession extends Emitter {
if (0 === this.tasks.length && this.requestor instanceof WsRequestor && !this.callGone) {
let span;
try {
/*
const {span} = this.rootSpan.startChildSpan('waiting for commands');
const {reason, queue, command} = await this._awaitCommandsOrHangup();
span.setAttributes({
@@ -792,6 +793,7 @@ class CallSession extends Emitter {
'async.request.command': command
});
span.end();
*/
if (this.callGone) break;
} catch (err) {
span.end();
@@ -1288,11 +1290,10 @@ class CallSession extends Emitter {
this.wakeupResolver = null;
}
else {
const {span} = this.rootSpan.startChildSpan('async command');
const {queue, command} = resolution;
const {span} = this.rootSpan.startChildSpan(`recv: ${command}`);
span.setAttributes({
'async.request.queue': queue,
'async.request.command': command
});
span.end();
}