We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b35f0d commit ff75526Copy full SHA for ff75526
turbopack/crates/turbopack-trace-server/src/store.rs
@@ -16,6 +16,10 @@ use crate::{
16
17
pub type SpanId = NonZeroUsize;
18
19
+/// This max depth is used to avoid deep recursion in the span tree,
20
+/// which can lead to stack overflows and performance issues.
21
+/// Spans deeper than this depth will be re-parented to an ancestor
22
+/// at the cut-off depth (Flattening).
23
const CUT_OFF_DEPTH: u32 = 80;
24
25
pub struct Store {
0 commit comments