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
6804a77d
Commit
6804a77d
authored
Apr 16, 2026
by
Zack Tanner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[otel] update OTEL test expectations for html warmup spans
parent
ace6ecf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
opentelemetry.test.ts
test/e2e/opentelemetry/instrumentation/opentelemetry.test.ts
+47
-0
No files found.
test/e2e/opentelemetry/instrumentation/opentelemetry.test.ts
View file @
6804a77d
...
...
@@ -13,6 +13,45 @@ const EXTERNAL = {
const
COLLECTOR_PORT
=
9001
const
isStartMode
=
process
.
env
.
NEXT_TEST_MODE
===
'start'
function
getNodeHtmlCompletionSpans
():
SpanMatch
[]
{
return
[
{
name
:
'NextNodeServer.htmlAllReady'
,
attributes
:
{
'next.span_name'
:
'NextNodeServer.htmlAllReady'
,
'next.span_type'
:
'NextNodeServer.htmlAllReady'
,
},
kind
:
0
,
status
:
{
code
:
0
},
},
{
name
:
'NextNodeServer.htmlShellWarmup'
,
attributes
:
{
'next.span_name'
:
'NextNodeServer.htmlShellWarmup'
,
'next.span_type'
:
'NextNodeServer.htmlShellWarmup'
,
},
kind
:
0
,
status
:
{
code
:
0
},
},
]
}
function
getNodeErrorHtmlShellWarmupSpan
(
message
:
string
):
SpanMatch
{
return
{
name
:
'NextNodeServer.htmlShellWarmup'
,
attributes
:
{
'error.type'
:
'Error'
,
'next.span_name'
:
'NextNodeServer.htmlShellWarmup'
,
'next.span_type'
:
'NextNodeServer.htmlShellWarmup'
,
},
kind
:
0
,
status
:
{
code
:
2
,
message
,
},
}
}
describe
(
'opentelemetry'
,
()
=>
{
const
{
next
,
skipped
,
isNextDev
}
=
nextTestSetup
({
files
:
__dirname
,
...
...
@@ -181,6 +220,7 @@ describe('opentelemetry', () => {
code
:
0
,
},
},
...
getNodeHtmlCompletionSpans
(),
{
name
:
'start response'
,
attributes
:
{
...
...
@@ -328,6 +368,7 @@ describe('opentelemetry', () => {
},
status
:
{
code
:
0
},
},
...
getNodeHtmlCompletionSpans
(),
],
},
],
...
...
@@ -589,6 +630,9 @@ describe('opentelemetry', () => {
code
:
0
,
},
},
getNodeErrorHtmlShellWarmupSpan
(
'Error from Server Component'
),
{
name
:
'start response'
,
attributes
:
{
...
...
@@ -712,6 +756,7 @@ describe('opentelemetry', () => {
code
:
0
,
},
},
...
getNodeHtmlCompletionSpans
(),
{
name
:
'start response'
,
attributes
:
{
...
...
@@ -1225,6 +1270,7 @@ describe('opentelemetry with disabled fetch tracing', () => {
{
name
:
'NextNodeServer.clientComponentLoading'
,
},
...
getNodeHtmlCompletionSpans
(),
{
name
:
'start response'
,
},
...
...
@@ -1390,6 +1436,7 @@ describe('opentelemetry with custom server', () => {
code
:
0
,
},
},
...
getNodeHtmlCompletionSpans
(),
{
name
:
'start response'
,
attributes
:
{
...
...
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