-
Notifications
You must be signed in to change notification settings - Fork 516
Add ability to add timeout duration to shutdown #2574
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
Comments
Removing from 0.28 as option2 is additive change, and can be done post 0.28 as well. |
I would be happy to work on this. Please assign it to me |
@mohammadVatandoost Thanks! Assigned. To confirm - you'll be pursuing the option2 from the issue, right? |
Yes, backward compatibility is important. |
I have a question:
@cijothomas What is your idea? |
Only providers need option2. |
Removing from logging-stable milestone. This is nice-to-have for that milestone, but given this is back-compatible, no need to make it mandatory for the stabilization milestone. |
Apologies, I have a correction to make. Though we don't expect users to directly call processor/readers, they still need to do the option2, and have a new method that takes timeout, just like providers. These are part of public api, and we can follow the same API share as provider. |
All Providers have shutdown() method now, and it internally uses a hardcoded 5sec timeout to perform shutdown. (usually passed on to reader/processor/exporter).
Opening an issue to let user provide their own timeout.
Option1
Option2
I am inclined to do 2, as it keeps backward compatibility, and we can add this anytime, not necessarily before 1.0. But given https://github.com/open-telemetry/opentelemetry-rust/pull/2573/files and changes in this area, it'd be better to club them in together.
The text was updated successfully, but these errors were encountered: