Skip to content

Commit 4781c8c

Browse files
committed
fix: actual number of futs
1 parent d54fbb3 commit 4781c8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/router.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ where
316316
let mut fut = BatchFuture::new_with_capacity(inbound.single(), inbound.len());
317317
// According to spec, non-parsable requests should still receive a
318318
// response.
319-
let span = debug_span!(parent: None, "BatchFuture::poll", futs = fut.len());
319+
let span = debug_span!(parent: None, "BatchFuture::poll", reqs = inbound.len(), futs = tracing::field::Empty);
320320

321321
for (batch_idx, req) in inbound.iter().enumerate() {
322322
let req = req.map(|req| {
@@ -328,6 +328,7 @@ where
328328
});
329329
fut.push_parse_result(req);
330330
}
331+
span.record("futs", fut.len());
331332
fut.with_span(span)
332333
}
333334

0 commit comments

Comments
 (0)