use std::future::Future; pub(crate) trait InstrumentedFuture: Future { fn id(&self) -> Option; } impl InstrumentedFuture for tracing::instrument::Instrumented { fn id(&self) -> Option { self.span().id() } }