pchickey edited a comment on Issue #1796:
I believe this is ready for review. During development I switched the design a fair bit, but I think the current one is reasonable for now. The
tracing
dep taken on bywasmtime
is small enough that it should be ok, and @fitzgen plans to usetracing
throughout cranelift and wasmtime soon.Tracing can't be disabled at the moment. In the future, Nick plans to introduce
tracing_noop
crate in the cranelift tree so that spidermonkey doesn't have to vendor in thetracing
ecosystem (they're particularly sensitive about vendoring deps, for good reason), and we can use that as a way to disable tracing in this crate once this lands. I don't think disabling it is worth blocking this change for now.The example program at
crates/wiggle/test-helpers/examples/tracing.rs
demonstrates the use oftracing-subscriber
andlog
as backends to the tracing statements emitted by wiggle. If you set theRUST_LOG
environment variable, itll useenv_logger
to output, otherwise it'll usetracing-subscriber
.
pchickey edited a comment on Issue #1796:
I believe this is ready for review. During development I switched the design a fair bit, but I think the current one is reasonable for now. The
tracing
dep taken on bywasmtime
is small enough that it should be ok, and @fitzgen plans to usetracing
throughout cranelift and wasmtime soon.Tracing can't be disabled at the moment. In the future, Nick plans to introduce
tracing_noop
crate in the cranelift tree so that spidermonkey doesn't have to vendor in thetracing
ecosystem (they're particularly sensitive about vendoring deps, for good reason), and we can use that as a way to disable tracing in this crate once this lands. I don't think the inability to disable tracing is worth blocking this change for now.The example program at
crates/wiggle/test-helpers/examples/tracing.rs
demonstrates the use oftracing-subscriber
andlog
as backends to the tracing statements emitted by wiggle. If you set theRUST_LOG
environment variable, itll useenv_logger
to output, otherwise it'll usetracing-subscriber
.
pchickey commented on Issue #1796:
Thanks everyone, I appreciate all of the help and discussion we had on getting this right.
Last updated: Nov 22 2024 at 16:03 UTC