[Windows] only report metric reporting failure once (#20426)

This commit is contained in:
Matti Picus 2021-11-24 03:35:58 +02:00 committed by GitHub
parent af9f1ef4dc
commit 08655ab812
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -203,7 +203,7 @@ void OpenCensusProtoExporter::ExportViewData(
request_proto, [](const Status &status, const rpc::ReportOCMetricsReply &reply) {
RAY_UNUSED(reply);
if (!status.ok()) {
RAY_LOG(WARNING)
RAY_LOG_EVERY_N(WARNING, 10000)
<< "Export metrics to agent failed: " << status
<< ". This won't affect Ray, but you can lose metrics from the cluster.";
}