Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK] Implement Forceflush for Periodic Metric Reader #2064

Merged
merged 16 commits into from
Mar 27, 2023
4 changes: 2 additions & 2 deletions sdk/src/metrics/export/periodic_exporting_metric_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ bool PeriodicExportingMetricReader::OnForceFlush(std::chrono::microseconds timeo
is_force_flush_notified_.store(false, std::memory_order_release);
if (result)
{

result = exporter_->ForceFlush(timeout);
result = exporter_->ForceFlush(
std::chrono::duration_cast<std::chrono::microseconds>(timeout_steady));
owent marked this conversation as resolved.
Show resolved Hide resolved
}
return result;
}
Expand Down