-
Notifications
You must be signed in to change notification settings - Fork 741
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
Use the thread_local crate allowing multiple registries #901
Conversation
Thanks, that does fail on master and work with this branch. Pushed it up. |
34dd7e7
to
a7ecc2a
Compare
Can we get before/after benchmarks with this? It would be nice to know how big the performance difference between the |
Here you go:
Edit: re-ran with less noise on my system |
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.
I left a couple of notes. Overall, though, this looks good to me.
Also, it looks like rustfmt needs to be run before CI will pass. |
7ad6826
to
08cf568
Compare
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.
looks great to me, thank you!
Fixed - **env-filter**: Incorrect max level hint when filters involving span field values are in use (#907) - **registry**: Fixed inconsistent span stacks when multiple registries are in use on the same thread (#901) Changed - **env-filter**: `regex` dependency enables fewer unused feature flags (#899) Thanks to @bdonlan and @jeromegn for contributing to this release!
### Fixed - **env-filter**: Incorrect max level hint when filters involving span field values are in use (#907) - **registry**: Fixed inconsistent span stacks when multiple registries are in use on the same thread (#901) ### Changed - **env-filter**: `regex` dependency enables fewer unused feature flags (#899) Thanks to @bdonlan and @jeromegn for contributing to this release!
Motivation
Fixes part of #898 where creating multiple registries made them fight over the thread_local-stored span stacks.
Solution
Use the
thread_local
crate which has a tighter scope.I believe @hawkw has a test that fails without this PR.