You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::promise<void> sender;
auto receiver = sender.get_future();
nothing ever sets receiver's value. suggestion is to pass sender into the thread and have the thread call sender.set_value() when finished, in order to unblock the below receiver.wait_for() as soon as possible.
I think the saving grace here is the break when the future eventually times out.
The text was updated successfully, but these errors were encountered:
marcalff
changed the title
PeriodicExportingMetricReader::CollectAndExportOnce() future is never set and CollectAndExportOnce() probably blocks until timeout
[SDK] PeriodicExportingMetricReader: future is never set, blocks until timeout
Aug 16, 2024
marcalff
added
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
and removed
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
labels
Aug 21, 2024
PeriodicExportingMetricReader::CollectAndExportOnce()
future is never set andCollectAndExportOnce()
probably blocks until timeout.opentelemetry-cpp/sdk/src/metrics/export/periodic_exporting_metric_reader.cc
Line 106 in 9e062b5
nothing ever sets receiver's value. suggestion is to pass sender into the thread and have the thread call
sender.set_value()
when finished, in order to unblock the belowreceiver.wait_for()
as soon as possible.I think the saving grace here is the
break
when the future eventually times out.The text was updated successfully, but these errors were encountered: