Skip to content

Commit bdb630c

Browse files
committed
End spans even on dataStream retry
1 parent 3eda55b commit bdb630c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/database.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3563,12 +3563,8 @@ class Database extends common.GrpcServiceObject {
35633563
mutationGroups,
35643564
options
35653565
);
3566-
dataStream.once('end', () => span.end());
3567-
dataStream.once('error', err => {
3568-
setSpanError(span, err!);
3569-
span.end();
3570-
});
35713566
dataStream.pipe(proxyStream);
3567+
span.end();
35723568
} else {
35733569
span.end();
35743570
proxyStream.destroy(err);

src/transaction.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,6 @@ export class Snapshot extends EventEmitter {
465465
} else {
466466
this._update(resp);
467467
}
468-
469468
span.end();
470469
callback!(err, resp);
471470
}

0 commit comments

Comments
 (0)