Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
88027c21
Unverified
Commit
88027c21
authored
May 29, 2026
by
Will Binns-Smith
Committed by
GitHub
May 29, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
turbopack tracing: add chunk_name to `get HMR events` span (#94061)
This adds the chunk's file path to the span as metadata.
parent
8aa475b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
project.rs
crates/next-api/src/project.rs
+6
-0
project.rs
crates/next-napi-bindings/src/next_api/project.rs
+7
-1
No files found.
crates/next-api/src/project.rs
View file @
88027c21
...
...
@@ -2412,6 +2412,12 @@ impl Project {
// sessions.
let
_
=
session
;
#[tracing
::
instrument(
level
=
"info"
,
name
=
"get HMR version"
,
skip_all,
fields(chunk_name
=
%
chunk_name,
target
=
%
target),
)]
#[turbo_tasks
::
function(operation,
root)]
async
fn
hmr_version_operation
(
this
:
ResolvedVc
<
Project
>
,
...
...
crates/next-napi-bindings/src/next_api/project.rs
View file @
88027c21
...
...
@@ -1814,6 +1814,12 @@ fn project_hmr_update_operation(
project
.hmr_update
(
chunk_name
,
target
,
*
state
)
}
#[tracing
::
instrument(
level
=
"info"
,
name
=
"hmr subscription"
,
skip_all,
fields(chunk_name
=
%
chunk_name,
target
=
%
target),
)]
#[turbo_tasks
::
function(operation,
root)]
async
fn
hmr_update_with_issues_operation
(
project
:
ResolvedVc
<
Project
>
,
...
...
@@ -1838,7 +1844,7 @@ async fn hmr_update_with_issues_operation(
.cell
())
}
#[tracing
::
instrument(level
=
"info"
,
name
=
"get HMR events"
,
skip(project,
func),
fields(target
=
%
target))]
#[tracing
::
instrument(level
=
"info"
,
name
=
"get HMR events"
,
skip(project,
func),
fields(target
=
%
target
,
chunk_name
=
%
chunk_name
))]
#[napi(ts_return_type
=
"{ __napiType:
\
"
RootTask
\
" }"
)]
pub
fn
project_hmr_events
(
#[napi(ts_arg_type
=
"{ __napiType:
\
"
Project
\
" }"
)]
project
:
External
<
ProjectInstance
>
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment