pub async fn traced_statement<T>(
sql: &str,
run: impl Future<Output = Result<T>>,
rows: impl FnOnce(&T) -> Option<u64>,
) -> Result<T>Expand description
Outside traced work no span opens, or the worker’s polling would trace every second.