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
tracingdep taken on bywasmtimeis small enough that it should be ok, and @fitzgen plans to usetracingthroughout cranelift and wasmtime soon.Tracing can't be disabled at the moment. In the future, Nick plans to introduce
tracing_noopcrate in the cranelift tree so that spidermonkey doesn't have to vendor in thetracingecosystem (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.rsdemonstrates the use oftracing-subscriberandlogas backends to the tracing statements emitted by wiggle. If you set theRUST_LOGenvironment variable, itll useenv_loggerto 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
tracingdep taken on bywasmtimeis small enough that it should be ok, and @fitzgen plans to usetracingthroughout cranelift and wasmtime soon.Tracing can't be disabled at the moment. In the future, Nick plans to introduce
tracing_noopcrate in the cranelift tree so that spidermonkey doesn't have to vendor in thetracingecosystem (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.rsdemonstrates the use oftracing-subscriberandlogas backends to the tracing statements emitted by wiggle. If you set theRUST_LOGenvironment variable, itll useenv_loggerto 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: Dec 13 2025 at 19:03 UTC