sync: instrument Semaphore for task dumps (#6499)

This commit is contained in:
Motoyuki Kimura 2024-04-20 19:35:11 +09:00 committed by GitHub
parent 125a185749
commit 2438b43671
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -575,6 +575,8 @@ impl Future for Acquire<'_> {
type Output = Result<(), AcquireError>;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
ready!(crate::trace::trace_leaf(cx));
#[cfg(all(tokio_unstable, feature = "tracing"))]
let _resource_span = self.node.ctx.resource_span.clone().entered();
#[cfg(all(tokio_unstable, feature = "tracing"))]