sync: instrument Semaphore for task dumps (#6499)

This commit is contained in:
Motoyuki Kimura
2024-04-20 12:35:11 +02:00
committed by GitHub
parent 125a185749
commit 2438b43671
+2
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"))]