TerrorJack opened issue #6191:
Thanks for filing a feature request! Please fill out the TODOs below.
Feature
It would be very nice if
wasmtime
has a WASI strace feature, which logs all WASI syscalls.Benefit
This feature improves observability of wasm modules being executed, and it's quite useful to debug the wasm module when things go wrong.
Implementation
Likely a CLI option, and some modification to the
wasmtime-wasi
crate.Alternatives
Some third-party rust program that uses the
wasmtime
crate and implements the strace middleware there.
abrown commented on issue #6191:
I've used the
RUST_LOG
environment variable for this in the past.
TerrorJack commented on issue #6191:
Ah I didn't read the documentation clearly! There's already
RUST_LOG=wasi_common=trace
. Thanks a lot for reminding me @abrown!
TerrorJack closed issue #6191:
Thanks for filing a feature request! Please fill out the TODOs below.
Feature
It would be very nice if
wasmtime
has a WASI strace feature, which logs all WASI syscalls.Benefit
This feature improves observability of wasm modules being executed, and it's quite useful to debug the wasm module when things go wrong.
Implementation
Likely a CLI option, and some modification to the
wasmtime-wasi
crate.Alternatives
Some third-party rust program that uses the
wasmtime
crate and implements the strace middleware there.
Last updated: Dec 23 2024 at 12:05 UTC