Stream: git-wasmtime

Topic: wasmtime / issue #6191 WASI strace feature request


view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2023 at 16:12):

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.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2023 at 16:21):

abrown commented on issue #6191:

I've used the RUST_LOG environment variable for this in the past.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2023 at 16:33):

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!

view this post on Zulip Wasmtime GitHub notifications bot (Apr 10 2023 at 16:33):

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: Nov 22 2024 at 17:03 UTC