Unverified Commit 133722ef authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

perf: lower high-volume Turbopack spans to trace

Co-authored-by: 's avatarNiklas Mischkulnig <4586894+mischnic@users.noreply.github.com>
parent cafc947d
......@@ -348,7 +348,6 @@ describe('turbopack-trace-server', () => {
"get server HMR update (next_napi_bindings::next_api::project)": 1,
"get server-side endpoint changes (next_napi_bindings::next_api::endpoint)": 1,
"initialize project (next_api::project)": 1,
"internal resolving (turbopack_core::resolve)": 1000,
"invalidate (turbo_tasks::manager)": 1,
"invalidate filesystem (turbo_tasks_fs::disk)": 1,
"isolated reference (turbopack_core::module_graph)": 10,
......@@ -425,7 +424,6 @@ describe('turbopack-trace-server', () => {
"generating server actions graphs (next_api::module_graph)": 1,
"get project feature usage (next_napi_bindings::next_api::project)": 1,
"initialize project (next_api::project)": 1,
"internal resolving (turbopack_core::resolve)": 1000,
"invalidate filesystem (turbo_tasks_fs::disk)": 1,
"isolated reference (turbopack_core::module_graph)": 10,
"make production chunks (turbopack_core::chunk::chunking::production)": 10,
......
......@@ -467,7 +467,7 @@ impl DiskFileSystem {
#[cfg(debug_assertions)]
async fn ensure_path_is_realpath(&self, operation: &str, path: &Path) -> Result<()> {
if let Ok(realpath) = retry_blocking(|| std::fs::canonicalize(path))
.instrument(tracing::info_span!("realpath for filesystem read", name = ?path))
.instrument(tracing::trace_span!("realpath for filesystem read", name = ?path))
.concurrency_limited(&self.inner.read_semaphore)
.await
&& realpath != path
......
......@@ -1953,7 +1953,7 @@ async fn resolve_internal_inline(
request: Vc<Request>,
options: Vc<ResolveOptions>,
) -> Result<Vc<ResolveResult>> {
let span = tracing::info_span!(
let span = tracing::trace_span!(
"internal resolving",
lookup_path = display(lookup_path.to_string_ref().await?),
name = tracing::field::Empty
......
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