Hi Y'all! I'm working on a Spin SDK for Go, and I'm trying to troubleshoot a WIT-related error:
# Run inside go/examples/spin-basic
$ spin up
Logging component stdio to ".spin/logs/"
Error: failed to resolve dependencies for component "spin-basic"
Caused by:
0: an error occurred when preparing dependencies
1: failed to decode world from module
2: failed to reduce input adapter module to its minimal size
3: adapter module does not have export `wasi:otel/tracing@0.2.0-draft:outer-span-context`
I think I'm properly generating the bindings (intellisense works):
# Commands in go/Makefile
$ wkg wit fetch -d ../wit
$ wkg wit build -d ../wit
$ go tool wit-bindgen-go generate --world imports --out internal ./wasi:otel@0.2.0-draft.wasm
I'm certain it's not an issue with the WIT files not exporting outer-span-context, which leads me to guess that I'm not properly pulling the dependencies together. Any thoughts?
Link to my code: https://github.com/asteurer/opentelemetry-wasi/tree/go/go
For context this work is related to #wasi-observe
Are you using the special version of Spin that implements wasi-otel?
Yes
@Andrew Steurer I think you'd get more responses in the cncf Slack's spin channel, as this Zulip is very much focused on Bytecode Alliance-hosted projects
Last updated: Dec 06 2025 at 05:03 UTC