Skip to content

Commit 30b2a13

Browse files
committed
Adjust otel tests for increased clientComponentLoadCount
1 parent 5ea8168 commit 30b2a13

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/e2e/opentelemetry/instrumentation/opentelemetry.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const EXTERNAL = {
1212
const COLLECTOR_PORT = 9001
1313

1414
describe('opentelemetry', () => {
15-
const { next, skipped } = nextTestSetup({
15+
const { next, skipped, isNextDev } = nextTestSetup({
1616
files: __dirname,
1717
skipDeployment: true,
1818
dependencies: require('./package.json').dependencies,
@@ -168,7 +168,11 @@ describe('opentelemetry', () => {
168168
},
169169
{
170170
attributes: {
171-
'next.clientComponentLoadCount': 6,
171+
'next.clientComponentLoadCount': isNextDev
172+
? // In dev, additional client components are being loaded
173+
// due to RSC props being deserialized.
174+
9
175+
: 6,
172176
'next.span_type':
173177
'NextNodeServer.clientComponentLoading',
174178
},

0 commit comments

Comments
 (0)