sunfishcode opened PR #9262 from sunfishcode:sunfishcode/verbose-tracing to bytecodealliance:main:
listvalues in Wit interfaces can represent things like HTTP bodies which can be very large. To enable tracing without spamming logfiles with all this data, put printing of values containinglists behind a separateverbose_tracingoption.This is a coarse-grained approach; but it seems like a pretty good default for tracing, and enabling full tracing when one needs it is straightforward.
In the future, we may want to refine the option by implementing the
Valuabletrait and usingtracing::field::valuable, which could allow us to do things like print non-listfields of records that otherwise containlists.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
sunfishcode requested fitzgen for a review on PR #9262.
sunfishcode requested wasmtime-core-reviewers for a review on PR #9262.
alexcrichton submitted PR review.
alexcrichton created PR review comment:
This might be a good use case for the
option_type_contains_listshelper? (and perhapsstreambelow?)
alexcrichton created PR review comment:
Mind hooking this up as well to the macro input?
sunfishcode updated PR #9262.
sunfishcode submitted PR review.
sunfishcode created PR review comment:
Done!
sunfishcode submitted PR review.
sunfishcode created PR review comment:
Done!
alexcrichton submitted PR review.
alexcrichton has enabled auto merge for PR #9262.
sunfishcode updated PR #9262.
alexcrichton merged PR #9262.
Last updated: Dec 13 2025 at 19:03 UTC