You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to fix this from inside warp but I am hitting a wall. The trick I could use was to convert the response body to a stream, instrument that stream with the span I want, then create a response from it.
Unfortunately, that will convert every response to a chunked one, definitely not something we need here.
From what I understand, warp makes a service, which receives a Request and returns a Response, and anything outside of that (reading parsing the request, serializing and writing the response) is hyper's job instead. So I guess it could be fixed by hyper's tracing integration, if it could create a span that is valid for the entire life of a HTTP transaction
Version
warp 0.3.2
Platform
Linux 5.13.0-7620-generic
Description
when using tracing with warp, and the tracing filters, the generated tracing span ends before the entire response body is sent
It is reproducible with this code sample: https://gist.github.com/Geal/68bb703d2c307e64bc415c60b6e75107
(derived from https://github.com/seanmonstar/warp/blob/master/examples/tracing.rs)
With this route:
I'd expect to see:
Here is what I see instead:
So the trace ends before the chunks are sent.
The text was updated successfully, but these errors were encountered: