Merge pull request #2252 from murgatroid99/grpc-js-xds_interop_stats_logging

grpc-js-xds: Log stats periodically in interop tests
This commit is contained in:
Michael Lumish 2022-10-21 15:47:43 -07:00 committed by GitHub
commit 9af9392fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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 = {