Unverified Commit 7f78299c authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Turbopack: don't create span for parallel chunking type (#75094)

parent 69a2d0b0
...@@ -10,7 +10,7 @@ use petgraph::{ ...@@ -10,7 +10,7 @@ use petgraph::{
visit::{Dfs, EdgeRef, IntoNodeReferences, VisitMap, Visitable}, visit::{Dfs, EdgeRef, IntoNodeReferences, VisitMap, Visitable},
}; };
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use tracing::Instrument; use tracing::{Instrument, Span};
use turbo_rcstr::RcStr; use turbo_rcstr::RcStr;
use turbo_tasks::{ use turbo_tasks::{
debug::ValueDebugFormat, debug::ValueDebugFormat,
...@@ -1077,14 +1077,17 @@ impl Visit<SingleModuleGraphBuilderNode> for SingleModuleGraphBuilder<'_> { ...@@ -1077,14 +1077,17 @@ impl Visit<SingleModuleGraphBuilderNode> for SingleModuleGraphBuilder<'_> {
source_ident, source_ident,
target_ident, target_ident,
.. ..
} => { } => match chunking_type {
tracing::info_span!( ChunkingType::Parallel => Span::current(),
"chunkable reference", _ => {
ty = debug(chunking_type), tracing::info_span!(
source = display(source_ident), "chunkable reference",
target = display(target_ident) ty = debug(chunking_type),
) source = display(source_ident),
} target = display(target_ident)
)
}
},
SingleModuleGraphBuilderNode::VisitedModule { .. } => { SingleModuleGraphBuilderNode::VisitedModule { .. } => {
tracing::info_span!("visited module") tracing::info_span!("visited module")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment