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
1ddd8de1
Unverified
Commit
1ddd8de1
authored
Nov 03, 2021
by
Tim Neutkens
Committed by
GitHub
Nov 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Next.js version to trace (#30881)
parent
5f72810d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
index.ts
packages/next/build/index.ts
+3
-1
hot-reloader.ts
packages/next/server/dev/hot-reloader.ts
+3
-1
No files found.
packages/next/build/index.ts
View file @
1ddd8de1
...
@@ -132,7 +132,9 @@ export default async function build(
...
@@ -132,7 +132,9 @@ export default async function build(
debugOutput
=
false
,
debugOutput
=
false
,
runLint
=
true
runLint
=
true
):
Promise
<
void
>
{
):
Promise
<
void
>
{
const
nextBuildSpan
=
trace
(
'next-build'
)
const
nextBuildSpan
=
trace
(
'next-build'
,
undefined
,
{
attrs
:
{
version
:
process
.
env
.
__NEXT_VERSION
},
})
const
buildResult
=
await
nextBuildSpan
.
traceAsyncFn
(
async
()
=>
{
const
buildResult
=
await
nextBuildSpan
.
traceAsyncFn
(
async
()
=>
{
// attempt to load global env values so they are available in next.config.js
// attempt to load global env values so they are available in next.config.js
...
...
packages/next/server/dev/hot-reloader.ts
View file @
1ddd8de1
...
@@ -189,7 +189,9 @@ export default class HotReloader {
...
@@ -189,7 +189,9 @@ export default class HotReloader {
)
)
this
.
previewProps
=
previewProps
this
.
previewProps
=
previewProps
this
.
rewrites
=
rewrites
this
.
rewrites
=
rewrites
this
.
hotReloaderSpan
=
trace
(
'hot-reloader'
)
this
.
hotReloaderSpan
=
trace
(
'hot-reloader'
,
undefined
,
{
attrs
:
{
version
:
process
.
env
.
__NEXT_VERSION
},
})
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
// Ensure the hotReloaderSpan is flushed immediately as it's the parentSpan for all processing
// of the current `next dev` invocation.
// of the current `next dev` invocation.
this
.
hotReloaderSpan
.
stop
()
this
.
hotReloaderSpan
.
stop
()
...
...
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