From 6fbbd26971c7135613a74988ac326df069b87f30 Mon Sep 17 00:00:00 2001 From: Denis Cornehl Date: Tue, 29 Jul 2025 07:24:28 +0200 Subject: [PATCH] ensure current tracing span is passed into streaming html rewrite --- src/utils/html.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/html.rs b/src/utils/html.rs index bae9d19c2..c2c8b8a15 100644 --- a/src/utils/html.rs +++ b/src/utils/html.rs @@ -42,7 +42,11 @@ pub(crate) fn rewrite_rustdoc_html_stream( where R: AsyncRead + Unpin + 'static, { + let span = tracing::info_span!("rewrite_rustdoc_html_stream"); + stream!({ + let _guard = span.enter(); + let (input_sender, input_receiver) = std::sync::mpsc::channel::>>(); let (result_sender, mut result_receiver) = tokio::sync::mpsc::unbounded_channel::();