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
9b90c2aa
Commit
9b90c2aa
authored
Aug 05, 2025
by
Evan Kirkiles
Committed by
devjiwonchoi
Aug 29, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sort order deterministic
parent
b0ee0bb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
opentelemetry.test.ts
test/e2e/opentelemetry/instrumentation/opentelemetry.test.ts
+8
-1
No files found.
test/e2e/opentelemetry/instrumentation/opentelemetry.test.ts
View file @
9b90c2aa
...
@@ -1230,10 +1230,17 @@ async function expectTrace(collector: Collector, match: SpanMatch[]) {
...
@@ -1230,10 +1230,17 @@ async function expectTrace(collector: Collector, match: SpanMatch[]) {
if
(
nameDiff
!==
0
)
{
if
(
nameDiff
!==
0
)
{
return
nameDiff
return
nameDiff
}
}
return
(
const
segmentDiff
=
(
a
.
attributes
?.[
'next.segment'
]
??
''
).
localeCompare
(
(
a
.
attributes
?.[
'next.segment'
]
??
''
).
localeCompare
(
b
.
attributes
?.[
'next.segment'
]
??
''
b
.
attributes
?.[
'next.segment'
]
??
''
)
??
0
)
??
0
if
(
segmentDiff
!==
0
)
{
return
segmentDiff
}
return
(
(
a
.
attributes
?.[
'next.route'
]
??
''
).
localeCompare
(
b
.
attributes
?.[
'next.route'
]
??
''
)
??
0
)
)
})
})
}
}
...
...
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