-
Notifications
You must be signed in to change notification settings - Fork 434
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] BatchLogRecordProcessor::ForceFlush hangs for 10 seconds #2583
Comments
|
Being in asynchronous mode, the To be more accurate, when I set a one-second timeout and there are network problems, the app stays five seconds at line 119 and almost five seconds again in block 129-138 Basically, I switched to asynchronous mode because the processor was stuck in the Export method when I asked it to |
I am using Charles application to simulate throttling. |
SIG meeting 11.03.2024: need a decision on which timeout should be used for shutdown, and if we need to flush the last buffer. |
This issue was marked as stale due to lack of activity. |
#2584 may also solve this problem. |
Platform : Ubuntu 23.10
Build: opentelemetry 1.11.0 with WITH_ASYNC_EXPORT_PREVIEW enabled
Deps: curl 7.85.0
Here are the lines of code used to initialize the logger provider:
Before quitting my application I do a
ForceFlush
with a timeout equal to 1 second.When the network connection is not good, it can happen that my application hangs for 10 seconds, which corresponds to the timeout of the curl request which I don't want to change.
I'd like to know why the timeout is not taken into account.
The text was updated successfully, but these errors were encountered: