-
Notifications
You must be signed in to change notification settings - Fork 502
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
Upgrade Tokio to v1 #421
Upgrade Tokio to v1 #421
Conversation
the minimum supported rust version for tokio is 1.45: https://github.com/tokio-rs/tokio#supported-rust-versions do you think we could raise the version here as well? 1.42 seems pretty old |
Codecov Report
@@ Coverage Diff @@
## master #421 +/- ##
==========================================
- Coverage 51.55% 48.74% -2.81%
==========================================
Files 65 66 +1
Lines 5117 5438 +321
==========================================
+ Hits 2638 2651 +13
- Misses 2479 2787 +308
Continue to review full report at Codecov.
|
I think we can. We promised three versions before current stable version, which is 1.49. So we can bump our minimum supported version to 1.45 or 1.46 |
This is ready for a review now. |
@mraerino thanks for working on this, as far as MSRV is concerned we could go either way, for example the Also pre-1.0 minor changes often include breaking changes, so not as much of a problem there until we hit GA |
tokio is used in the tests even if zero features are enabled. i don't think what you propose is possible with the current CI flow |
Alternatives:
The reason I hadn't done the upgrade here is there are also some tonic dependencies, and tonic support for tokio 1 has not yet been released. So if we want to prevent spawning multiple runtimes in the background, this PR should (a) wait until tonic 0.4 has been released -- judging from chat activity, this should come pretty soon, or (b) change crates depending on tonic to depend on a released version of opentelemetry, sticking to tokio 0.2 for now. (Otherwise the changes here look good to me; my one nit is the underscore in the |
thanks for pointing out tonic! totally did not see that. |
i made #424 to test the otlp exporter closer to reality. With that test, CI would be red here right now since tonic fails to run in a Tokio v1 executor. |
FYI, tonic 0.4 has been released. |
yup, i saw. merging master and upgrading tonic |
Also fixes the new integration test
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the nit below, this is looking good to me!
Co-authored-by: Dirkjan Ochtman <[email protected]>
ASAP |
Fixes #420
I also upgraded these dependencies: