GaiResolver insta-panic if the async request has a custom subscriber installed because GaiResolver drops a span on a different thread than the one that created it? #3848
Labels
C-bug
Category: bug. Something is wrong. This is bad!
Version
hyper 1.6.0
hyper-util 0.1.10 (where the crash occurs)
Platform
Linux archlinux 6.12.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 10 Jan 2025 00:39:41 +0000 x86_64 GNU/Linux
Description
I tried this code:
What it looks like is that a span is created on 1 thread & then dropped on the blocking thread. I think this is a misuse of tracing given the note at https://docs.rs/tracing/latest/tracing/struct.Span.html
I expected to see this happen: "Starting request" followed by "HTTP request failed" or "Finished request"
Instead, this happened:
The text was updated successfully, but these errors were encountered: