Stream: git-wasmtime

Topic: wasmtime / PR #8384 Trace outbound http request in wasi-http


view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2024 at 18:18):

calebschoepp requested alexcrichton for a review on PR #8384.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2024 at 18:18):

calebschoepp requested wasmtime-core-reviewers for a review on PR #8384.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2024 at 18:18):

calebschoepp opened PR #8384 from calebschoepp:trace-outbound-request to bytecodealliance:main:

This is to support tracing of outbound HTTP request in downstream libraries like Spin.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2024 at 18:22):

calebschoepp updated PR #8384.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2024 at 19:45):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2024 at 19:45):

alexcrichton created PR review comment:

I've not used #[instrument] myself before, but would it be possible to do something like url.full = request.uri() here in the macro instead of in the body below? I'm not sure if that has type restrictions on the return value of .ur(), but adding .to_string() may work well too.

Also, mind adding some comments as to what otel.kind, otel.name, and server.{address,port} are doing? The first two seem like sort of "standard variables" to set, but the second two aren't set here in the method either.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2024 at 19:46):

calebschoepp updated PR #8384.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2024 at 19:47):

calebschoepp submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2024 at 19:47):

calebschoepp created PR review comment:

Sure, I'll look into that @alexcrichton. Also sorry, I force pushed a linting fix without realizing you'd already started reviewing this.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2024 at 19:48):

calebschoepp commented on PR #8384:

@alexcrichton is this something worth backporting to v18? It seems like this code changes a reasonable amount between v18 and v19.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 16 2024 at 19:52):

alexcrichton commented on PR #8384:

It's possible yeah to backport to 18/19, yeah, but if it works it'd probably be best to get this in main and backport it to the 20.0.0 release happening this weekend and having Spin update to 20.0.0

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

calebschoepp closed without merge PR #8384.

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

calebschoepp commented on PR #8384:

Closing this b/c after a discussion with @alexcrichton we decided it is best to do this tracing in Spin. A subsequent PR will follow that will expose handler for Spin to use.


Last updated: Dec 23 2024 at 12:05 UTC