Skip to content

Commit

Permalink
Use call start times in some trace logs
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Mar 21, 2024
1 parent d7d1717 commit f4330f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/grpc-js/src/load-balancing-call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ export class LoadBalancingCall implements Call, DeadlineInfoProvider {
status.code +
' details="' +
status.details +
'"'
'" start time=' +
this.startTime.toISOString()
);
const finalStatus = { ...status, progress };
this.listener?.onReceiveStatus(finalStatus);
Expand Down
3 changes: 2 additions & 1 deletion packages/grpc-js/src/retrying-call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ export class RetryingCall implements Call, DeadlineInfoProvider {
statusObject.code +
' details="' +
statusObject.details +
'"'
'" start time=' +
this.startTime.toISOString()
);
this.bufferTracker.freeAll(this.callNumber);
this.writeBufferOffset = this.writeBufferOffset + this.writeBuffer.length;
Expand Down

0 comments on commit f4330f7

Please sign in to comment.