Propagate span tree into field handler
This commit is contained in:
parent
05161821b6
commit
0d3fd3b19e
|
@ -28,6 +28,7 @@ use actix_web::web::BytesMut;
|
|||
use std::{collections::HashMap, path::Path, rc::Rc};
|
||||
use streem::IntoStreamer;
|
||||
use tokio::task::JoinSet;
|
||||
use tracing::Instrument;
|
||||
|
||||
fn consolidate<T>(mf: MultipartForm<T>) -> Value<T> {
|
||||
mf.into_iter().fold(
|
||||
|
@ -306,7 +307,7 @@ where
|
|||
if let Some(res) = opt {
|
||||
match res {
|
||||
Ok(field) => {
|
||||
set.spawn_local(handle_stream_field(field, Rc::clone(&form)));
|
||||
set.spawn_local(handle_stream_field(field, Rc::clone(&form)).instrument(tracing::trace_span!("multipart-field")));
|
||||
},
|
||||
Err(e) => {
|
||||
is_closed = true;
|
||||
|
|
Loading…
Reference in a new issue