Skip to content

Commit

Permalink
grpc-js-xds: Log stats periodically in interop tests
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Oct 21, 2022
1 parent aaa568f commit bcf4ce2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/grpc-js-xds/interop/xds-interop-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ function sendConstantQps(client: TestServiceClient, qps: number, failOnFailedRpc
makeSingleRequest(client, callType, failOnFailedRpcs, callStatsTracker);
}
}, 1000/qps);
setInterval(() => {
console.log(`Accumulated stats: ${JSON.stringify(accumulatedStats, undefined, 2)}`);
}, 1000);
}

const callTypeEnumMap = {
Expand Down

0 comments on commit bcf4ce2

Please sign in to comment.