Skip to content

Commit bfdb522

Browse files
committed
ensure current tracing span is passed into streaming html rewrite
1 parent e18d034 commit bfdb522

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/utils/html.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ pub(crate) fn rewrite_rustdoc_html_stream<R>(
4242
where
4343
R: AsyncRead + Unpin + 'static,
4444
{
45+
let span = tracing::info_span!("rewrite_rustdoc_html_stream");
46+
4547
stream!({
48+
let _guard = span.enter();
49+
4650
let (input_sender, input_receiver) = std::sync::mpsc::channel::<Option<Vec<u8>>>();
4751
let (result_sender, mut result_receiver) = tokio::sync::mpsc::unbounded_channel::<Bytes>();
4852

0 commit comments

Comments
 (0)