turbo
26d3ef55 - feat: Instrument post-hashing setup phase for trace visibility (#12160)

Commit
1 day ago
feat: Instrument post-hashing setup phase for trace visibility (#12160) ## Summary - Adds tracing spans to the previously untraced gap between `calculate_file_hashes` and `visit` in the `turbo run` critical path - In production traces, this gap is 190ms for `codegen:app` and 33ms for `codegen:api` with zero visibility into what's consuming that time ## What's instrumented | Span | Location | What it covers | |---|---|---| | `post_hashing_setup` | `run/mod.rs` | Global hash computation, env resolution, run tracker construction | | `precompute_external_deps_hashes` | `task-hash/src/lib.rs` | Parallel rayon sort+hash of transitive lockfile deps for all packages | | `calculate_global_hash` | `task-hash/src/global_hash.rs` | Deterministic global hash computation | | `configure_pane_size` | `task_graph/visitor/mod.rs` | Async TUI pane size query (was outside the existing `visitor_new` span) | ## Testing `cargo check` passes. No behavioral changes — this is tracing instrumentation only.
Author
Parents
Loading