-
Notifications
You must be signed in to change notification settings - Fork 893
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
feat(log): unhide tracing::instrument
from behind feature = "otel"
#3873
Conversation
The Windows CI is still red, but only a small number of tests are failing due to stack overflow compared to #3803's CI. @roife has pointed me to the stack size restriction on Windows, saying that maybe it's not a stack overflow caused by infinite recursion, instead we might simply need a bigger stack. |
On Windows, applications choose their stack size rather than being defined by the system. So another option is to increase the default stack size by using a linker argument (for msvc that's |
@ChrisDenton Thanks a lot for your pointers! Looks like unoptimized Rust is indeed hungry on stack space:
I'll try your suggestion in https://users.rust-lang.org/t/stack-overflow-when-compiling-on-windows-10/50818/8 and rust-lang/rust#85303 first. |
Oh, hm actually I think the test runner sets the stack size itself. I'm not sure if that is directly configurable. You might need to set the |
2a7f0ec
to
8730a22
Compare
8730a22
to
2ede7f7
Compare
@ChrisDenton Thanks a lot! That seems to work :) PS: Sorry I got a bit sidetracked with other issues in the past few weeks 🙈 |
d4a5997
to
c678487
Compare
Cherry-picked from #3803 as discussed in #3803 (comment).
Note
This is done by simply replacing
cfg_attr\(feature = \"otel\", tracing::instrument(\((.*)\))?\)\]
withtracing::instrument(level = "trace", $2)]
, then replacing, \)\]
with)]
.