Skip to content

Conversation

lubieowoce
Copy link
Member

No description provided.

Copy link
Member Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@lubieowoce lubieowoce added the CI Bypass Graphite Optimization Ignore Graphite CI optimizations, run the full CI suite. https://graphite.dev/docs/stacking-and-ci label Oct 8, 2025
@lubieowoce lubieowoce force-pushed the lubieowoce/restart-on-cache-miss branch from 06d3719 to 422be96 Compare October 8, 2025 18:36
@lubieowoce lubieowoce force-pushed the lubieowoce/multi-task-dev-render branch from 0edd917 to 9392c81 Compare October 8, 2025 18:36
@ijjk
Copy link
Member

ijjk commented Oct 8, 2025

Failing test suites

Commit: 9392c81 | About building and testing Next.js

pnpm test-dev-turbo test/e2e/app-dir/cache-components/cache-components.console.test.ts (turbopack)

  • cache-components - Console Dimming - Logging after Abort in Server > dims console calls after a prerender has aborted (DD)
Expand output

● cache-components - Console Dimming - Logging after Abort in Server › dims console calls after a prerender has aborted

expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `cache-components - Console Dimming - Logging after Abort in Server dims console calls after a prerender has aborted 2`

- Snapshot  - 1
+ Received  + 1

@@ -1,8 +1,8 @@
  {
    "description": ":::0:err::: /console: test",
-   "environmentLabel": "Server",
+   "environmentLabel": "Prefetch",
    "label": "Console Error",
    "source": "app/console-after-abort/server/page.tsx (49:17) @ ConsolePage
  > 49 |   console.error(new Error(`${errBadge} /console: test`))
       |                 ^",
    "stack": [

  290 |       `)
  291 |
> 292 |       await expect(browser).toDisplayCollapsedRedbox(`
      |                             ^
  293 |        {
  294 |          "description": ":::0:err::: /console: test",
  295 |          "environmentLabel": "Server",

  at Object.toDisplayCollapsedRedbox (e2e/app-dir/cache-components/cache-components.console.test.ts:292:29)

pnpm test-start test/e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts

  • PPR - partial hydration > No static shell, no streaming metadata > should hydrate the shell without waiting for slow suspense boundaries (DD)
  • PPR - partial hydration > No static shell, streaming metadata > should hydrate the shell without waiting for slow suspense boundaries (DD)
  • PPR - partial hydration > Static shell, no streaming metadata > should hydrate the shell without waiting for slow suspense boundaries (DD)
  • PPR - partial hydration > Static shell, streaming metadata > should hydrate the shell without waiting for slow suspense boundaries (DD)
Expand output

● PPR - partial hydration › Static shell, no streaming metadata › should hydrate the shell without waiting for slow suspense boundaries

page.waitForSelector: Timeout 10ms exceeded.
Call log:
  - waiting for locator('#shell-hydrated') to be visible
  -   locator resolved to visible <div id="shell-hydrated" data-is-hydrated="true">🟢 Hydrated</div>

  511 |
  512 |     return this.startChain(async () => {
> 513 |       const el = await page.waitForSelector(selector, {
      |                             ^
  514 |         timeout,
  515 |         state,
  516 |       })

  at waitForSelector (lib/browsers/playwright.ts:513:29)
  at Playwright._chain (lib/browsers/playwright.ts:643:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:624:17)
  at Playwright.startChain [as waitForElementByCss] (lib/browsers/playwright.ts:512:17)
  at Playwright.waitForElementByCss (lib/browsers/playwright.ts:405:17)
  at elementByCssInstant (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:54:16)
  at fn (lib/next-test-utils.ts:828:20)
  at Object.<anonymous> (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:48:7)
  at Proxy._chain (lib/browsers/playwright.ts:643:23)
  at Proxy._chain (lib/browsers/playwright.ts:619:17)
  at Proxy.continueChain (lib/browsers/playwright.ts:447:17)
  at getAttribute (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:55:16)
  at fn (lib/next-test-utils.ts:828:20)
  at Object.<anonymous> (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:48:7)

● PPR - partial hydration › Static shell, streaming metadata › should hydrate the shell without waiting for slow suspense boundaries

page.waitForSelector: Timeout 10ms exceeded.
Call log:
  - waiting for locator('#shell-hydrated') to be visible
  -   locator resolved to visible <div id="shell-hydrated" data-is-hydrated="true">🟢 Hydrated</div>

  511 |
  512 |     return this.startChain(async () => {
> 513 |       const el = await page.waitForSelector(selector, {
      |                             ^
  514 |         timeout,
  515 |         state,
  516 |       })

  at waitForSelector (lib/browsers/playwright.ts:513:29)
  at Playwright._chain (lib/browsers/playwright.ts:643:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:624:17)
  at Playwright.startChain [as waitForElementByCss] (lib/browsers/playwright.ts:512:17)
  at Playwright.waitForElementByCss (lib/browsers/playwright.ts:405:17)
  at elementByCssInstant (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:72:14)
  at fn (lib/next-test-utils.ts:828:20)
  at Object.<anonymous> (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:68:7)
  at Proxy._chain (lib/browsers/playwright.ts:643:23)
  at Proxy._chain (lib/browsers/playwright.ts:619:17)
  at Proxy.continueChain (lib/browsers/playwright.ts:447:17)
  at getAttribute (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:73:14)
  at fn (lib/next-test-utils.ts:828:20)
  at Object.<anonymous> (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:68:7)

● PPR - partial hydration › No static shell, no streaming metadata › should hydrate the shell without waiting for slow suspense boundaries

page.waitForSelector: Timeout 10ms exceeded.
Call log:
  - waiting for locator('#shell-hydrated') to be visible
  -   locator resolved to visible <div id="shell-hydrated" data-is-hydrated="true">🟢 Hydrated</div>

  511 |
  512 |     return this.startChain(async () => {
> 513 |       const el = await page.waitForSelector(selector, {
      |                             ^
  514 |         timeout,
  515 |         state,
  516 |       })

  at waitForSelector (lib/browsers/playwright.ts:513:29)
  at Playwright._chain (lib/browsers/playwright.ts:643:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:624:17)
  at Playwright.startChain [as waitForElementByCss] (lib/browsers/playwright.ts:512:17)
  at Playwright.waitForElementByCss (lib/browsers/playwright.ts:405:17)
  at elementByCssInstant (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:72:14)
  at fn (lib/next-test-utils.ts:828:20)
  at Object.<anonymous> (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:68:7)
  at Proxy._chain (lib/browsers/playwright.ts:643:23)
  at Proxy._chain (lib/browsers/playwright.ts:619:17)
  at Proxy.continueChain (lib/browsers/playwright.ts:447:17)
  at getAttribute (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:73:14)
  at fn (lib/next-test-utils.ts:828:20)
  at Object.<anonymous> (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:68:7)

● PPR - partial hydration › No static shell, streaming metadata › should hydrate the shell without waiting for slow suspense boundaries

page.waitForSelector: Timeout 10ms exceeded.
Call log:
  - waiting for locator('#shell-hydrated') to be visible
  -   locator resolved to visible <div id="shell-hydrated" data-is-hydrated="true">🟢 Hydrated</div>

  511 |
  512 |     return this.startChain(async () => {
> 513 |       const el = await page.waitForSelector(selector, {
      |                             ^
  514 |         timeout,
  515 |         state,
  516 |       })

  at waitForSelector (lib/browsers/playwright.ts:513:29)
  at Playwright._chain (lib/browsers/playwright.ts:643:23)
  at Playwright._chain [as startChain] (lib/browsers/playwright.ts:624:17)
  at Playwright.startChain [as waitForElementByCss] (lib/browsers/playwright.ts:512:17)
  at Playwright.waitForElementByCss (lib/browsers/playwright.ts:405:17)
  at elementByCssInstant (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:72:14)
  at fn (lib/next-test-utils.ts:828:20)
  at Object.<anonymous> (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:68:7)
  at Proxy._chain (lib/browsers/playwright.ts:643:23)
  at Proxy._chain (lib/browsers/playwright.ts:619:17)
  at Proxy.continueChain (lib/browsers/playwright.ts:447:17)
  at getAttribute (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:73:14)
  at fn (lib/next-test-utils.ts:828:20)
  at Object.<anonymous> (e2e/app-dir/ppr-partial-hydration/ppr-partial-hydration.test.ts:68:7)

pnpm test-start-turbo test/e2e/app-dir/segment-cache/incremental-opt-in/segment-cache-incremental-opt-in.test.ts (turbopack)

  • segment cache (incremental opt in) > prefetches a dynamic route when PPR is disabled if it has a loading.tsx boundary (DD)
Expand output

● segment cache (incremental opt in) › prefetches a dynamic route when PPR is disabled if it has a loading.tsx boundary

thrown: "Exceeded timeout of 120000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

  110 |   })
  111 |
> 112 |   it('prefetches a dynamic route when PPR is disabled if it has a loading.tsx boundary', async () => {
      |   ^
  113 |     let act
  114 |     const browser = await next.browser('/', {
  115 |       beforePageLoad(p) {

  at it (e2e/app-dir/segment-cache/incremental-opt-in/segment-cache-incremental-opt-in.test.ts:112:3)
  at Object.describe (e2e/app-dir/segment-cache/incremental-opt-in/segment-cache-incremental-opt-in.test.ts:5:1)

pnpm test-dev-experimental test/e2e/app-dir/use-cache/use-cache.test.ts(Experimental)

  • use-cache > should not read nor write cached data when draft mode is enabled > js disabled, without cookies (DD)
Expand output

● use-cache › should not read nor write cached data when draft mode is enabled › js disabled, without cookies

expect(received).toBe(expected) // Object.is equality

Expected: "Disable Draft Mode"
Received: "Enable Draft Mode"

  904 |       await browser.waitForElementByCss('button#toggle:enabled')
  905 |
> 906 |       expect(await browser.elementByCss('button#toggle').text()).toBe(
      |                                                                  ^
  907 |         'Disable Draft Mode'
  908 |       )
  909 |

  at toBe (e2e/app-dir/use-cache/use-cache.test.ts:906:66)

pnpm test test/integration/clean-distdir/test/index.test.js

  • Cleaning distDir > production mode > should clean up .next before build start (DD)
  • Cleaning distDir > production mode > disabled write > should not clean up .next before build start (DD)
Expand output

● Cleaning distDir › production mode › should clean up .next before build start

thrown: "Exceeded timeout of 60000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

  25 |
  26 | const runTests = () => {
> 27 |   it('should clean up .next before build start', async () => {
     |   ^
  28 |     await checkFileWrite(false)
  29 |   })
  30 | }

  at it (integration/clean-distdir/test/index.test.js:27:3)
  at runTests (integration/clean-distdir/test/index.test.js:40:7)
  at integration/clean-distdir/test/index.test.js:33:56
  at Object.describe (integration/clean-distdir/test/index.test.js:32:1)

● Cleaning distDir › production mode › disabled write › should not clean up .next before build start

command failed with code 1 signal null
 ⨯ Unable to acquire lock at /root/actions-runner/_work/next.js/next.js/test/integration/clean-distdir/.next/lock, is another instance of next build running?
   Suggestion: If you intended to restart next build, terminate the other process, and then try again.

  329 |       ) {
  330 |         return reject(
> 331 |           new Error(
      |           ^
  332 |             `command failed with code ${code} signal ${signal}\n${mergedStdio}`
  333 |           )
  334 |         )

  at ChildProcess.<anonymous> (lib/next-test-utils.ts:331:11)

pnpm test-start-turbo test/e2e/app-dir/app-prefetch/prefetching.test.ts (turbopack)

  • app dir - prefetching > should show layout eagerly when prefetched with loading one level down (DD)
Expand output

● app dir - prefetching › should show layout eagerly when prefetched with loading one level down

thrown: "Exceeded timeout of 120000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

  26 |   })
  27 |
> 28 |   it('should show layout eagerly when prefetched with loading one level down', async () => {
     |   ^
  29 |     let act: ReturnType<typeof createRouterAct>
  30 |     const timeController = createTimeController()
  31 |     const browser = await next.browser('/', {

  at it (e2e/app-dir/app-prefetch/prefetching.test.ts:28:3)
  at Object.describe (e2e/app-dir/app-prefetch/prefetching.test.ts:11:1)

pnpm test-start-turbo test/e2e/opentelemetry/instrumentation/opentelemetry.test.ts (turbopack)

  • opentelemetry > incoming context propagation > app router > should handle RSC with fetch (DD)
  • opentelemetry > incoming context propagation > app router > should propagate custom context without span (DD)
  • opentelemetry > incoming context propagation > app router > should handle RSC with fetch on edge (DD)
  • opentelemetry > incoming context propagation > app router > should trace middleware (DD)
  • opentelemetry > incoming context propagation > app router > should handle error in RSC (DD)
  • opentelemetry > root context > app router > should handle RSC with fetch (DD)
  • opentelemetry > root context > app router > should propagate custom context without span (DD)
  • opentelemetry > root context > app router > should handle RSC with fetch on edge (DD)
  • opentelemetry > root context > app router > should trace middleware (DD)
  • opentelemetry > root context > app router > should handle error in RSC (DD)
  • opentelemetry with disabled fetch tracing > root context > app router with disabled fetch > should handle RSC with disabled fetch (DD)
Expand output

● opentelemetry › root context › app router › should handle RSC with fetch

TIMED OUT: success

undefined

Error: expect(received).toMatchObject(expected)

- Expected  - 40
+ Received  + 92

@@ -1,145 +1,197 @@
  Array [
    Object {
      "attributes": Object {
-       "http.method": "GET",
-       "http.route": "/app/[param]/rsc-fetch",
-       "http.status_code": 200,
-       "http.target": "/app/param/rsc-fetch",
-       "next.route": "/app/[param]/rsc-fetch",
-       "next.rsc": false,
-       "next.span_name": "GET /app/[param]/rsc-fetch",
-       "next.span_type": "BaseServer.handleRequest",
-     },
-     "kind": 1,
-     "name": "GET /app/[param]/rsc-fetch",
-     "parentId": undefined,
-     "spans": Array [
-       Object {
-         "attributes": Object {
-           "next.route": "/app/[param]/rsc-fetch",
-           "next.span_name": "render route (app) /app/[param]/rsc-fetch",
-           "next.span_type": "AppRender.getBodyResult",
-         },
-         "kind": 0,
-         "name": "render route (app) /app/[param]/rsc-fetch",
-         "spans": Array [
-           Object {
-             "attributes": Object {
        "next.span_name": "build component tree",
        "next.span_type": "NextNodeServer.createComponentTree",
      },
+     "events": Array [],
+     "id": "451ddf2083c8befa",
      "kind": 0,
+     "links": Array [],
      "name": "build component tree",
+     "parentId": "6edb5edfbbd6ea82",
+     "runtime": "nodejs",
      "spans": Array [
        Object {
          "attributes": Object {
            "next.segment": "__PAGE__",
            "next.span_name": "resolve segment modules",
            "next.span_type": "NextNodeServer.getLayoutOrPageModule",
          },
+         "events": Array [],
+         "id": "530aee946402ab72",
          "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "451ddf2083c8befa",
+         "runtime": "nodejs",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "[trace-id]",
        },
        Object {
          "attributes": Object {
            "next.segment": "[param]",
            "next.span_name": "resolve segment modules",
            "next.span_type": "NextNodeServer.getLayoutOrPageModule",
          },
+         "events": Array [],
+         "id": "973d44a38e38eb35",
          "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "451ddf2083c8befa",
+         "runtime": "nodejs",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "[trace-id]",
        },
      ],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
    Object {
      "attributes": Object {
        "http.method": "GET",
        "http.url": "https://example.vercel.sh/",
        "net.peer.name": "example.vercel.sh",
        "next.span_name": "fetch GET https://example.vercel.sh/",
        "next.span_type": "AppRender.fetch",
      },
+     "events": Array [],
+     "id": "291b583c3b6bcaec",
      "kind": 2,
+     "links": Array [],
      "name": "fetch GET https://example.vercel.sh/",
+     "parentId": "6edb5edfbbd6ea82",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
    Object {
      "attributes": Object {
        "next.page": "/app/[param]/layout",
        "next.span_name": "generateMetadata /app/[param]/layout",
        "next.span_type": "ResolveMetadata.generateMetadata",
      },
+     "events": Array [],
+     "id": "348e824d10278e3f",
      "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/layout",
+     "parentId": "6edb5edfbbd6ea82",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
    Object {
      "attributes": Object {
        "next.page": "/app/[param]/rsc-fetch/page",
        "next.span_name": "generateMetadata /app/[param]/rsc-fetch/page",
        "next.span_type": "ResolveMetadata.generateMetadata",
      },
+     "events": Array [],
+     "id": "ec9eff90811d02fb",
      "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/rsc-fetch/page",
+     "parentId": "6edb5edfbbd6ea82",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
    Object {
      "attributes": Object {
-               "next.clientComponentLoadCount": 6,
-               "next.span_type": "NextNodeServer.clientComponentLoading",
-             },
-             "kind": 0,
-             "name": "NextNodeServer.clientComponentLoading",
-             "status": Object {
-               "code": 0,
-             },
+       "http.method": "GET",
+       "http.route": "/app/[param]/rsc-fetch",
+       "http.status_code": 200,
+       "http.target": "/app/param/rsc-fetch",
+       "next.route": "/app/[param]/rsc-fetch",
+       "next.rsc": false,
+       "next.span_name": "GET /app/[param]/rsc-fetch",
+       "next.span_type": "BaseServer.handleRequest",
      },
+     "events": Array [],
+     "id": "710f7f477cbf85b2",
+     "kind": 1,
+     "links": Array [],
+     "name": "GET /app/[param]/rsc-fetch",
+     "parentId": undefined,
+     "runtime": "nodejs",
+     "spans": Array [
        Object {
          "attributes": Object {
-               "next.span_name": "start response",
-               "next.span_type": "NextNodeServer.startResponse",
+           "next.route": "/app/[param]/rsc-fetch",
+           "next.span_name": "resolve page components",
+           "next.span_type": "NextNodeServer.findPageComponents",
          },
+         "events": Array [],
+         "id": "957cf6b9942bf280",
          "kind": 0,
-             "name": "start response",
+         "links": Array [],
+         "name": "resolve page components",
+         "parentId": "710f7f477cbf85b2",
+         "runtime": "nodejs",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "[trace-id]",
        },
      ],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
    Object {
      "attributes": Object {
-           "next.route": "/app/[param]/rsc-fetch",
-           "next.span_name": "resolve page components",
-           "next.span_type": "NextNodeServer.findPageComponents",
+       "next.clientComponentLoadCount": 6,
+       "next.span_type": "NextNodeServer.clientComponentLoading",
      },
+     "events": Array [],
+     "id": "d28944d7a0df54b8",
      "kind": 0,
-         "name": "resolve page components",
+     "links": Array [],
+     "name": "NextNodeServer.clientComponentLoading",
+     "parentId": "6edb5edfbbd6ea82",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
-     ],
+   Object {
+     "attributes": Object {
+       "next.span_name": "start response",
+       "next.span_type": "NextNodeServer.startResponse",
+     },
+     "events": Array [],
+     "id": "971725f52e15e070",
+     "kind": 0,
+     "links": Array [],
+     "name": "start response",
+     "parentId": "6edb5edfbbd6ea82",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
      "traceId": "[trace-id]",
    },

  753 |
  754 |   if (hardError) {
> 755 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  756 |   }
  757 |   return false
  758 | }

  at check (lib/next-test-utils.ts:755:11)
  at expectTrace (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:1129:3)
  at Object.<anonymous> (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:73:13)

● opentelemetry › root context › app router › should propagate custom context without span

TIMED OUT: success

undefined

Error: expect(received).toMatchObject(expected)

- Expected  -   0
+ Received  + 200

  Array [
    Object {
      "attributes": Object {
        "custom": "custom1",
+       "next.span_name": "build component tree",
+       "next.span_type": "NextNodeServer.createComponentTree",
+     },
+     "events": Array [],
+     "id": "9110d289ff8de40d",
+     "kind": 0,
+     "links": Array [],
+     "name": "build component tree",
+     "parentId": "bde1c69d686673d9",
+     "runtime": "nodejs",
+     "spans": Array [
+       Object {
+         "attributes": Object {
+           "custom": "custom1",
+           "next.segment": "__PAGE__",
+           "next.span_name": "resolve segment modules",
+           "next.span_type": "NextNodeServer.getLayoutOrPageModule",
+         },
+         "events": Array [],
+         "id": "693ab0c31ad1a2e7",
+         "kind": 0,
+         "links": Array [],
+         "name": "resolve segment modules",
+         "parentId": "9110d289ff8de40d",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "[trace-id]",
+       },
+       Object {
+         "attributes": Object {
+           "custom": "custom1",
+           "next.segment": "[param]",
+           "next.span_name": "resolve segment modules",
+           "next.span_type": "NextNodeServer.getLayoutOrPageModule",
+         },
+         "events": Array [],
+         "id": "08fc34cc00763fee",
+         "kind": 0,
+         "links": Array [],
+         "name": "resolve segment modules",
+         "parentId": "9110d289ff8de40d",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "[trace-id]",
+       },
+     ],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
+   },
+   Object {
+     "attributes": Object {
+       "custom": "custom1",
+       "http.method": "GET",
+       "http.url": "https://example.vercel.sh/",
+       "net.peer.name": "example.vercel.sh",
+       "next.span_name": "fetch GET https://example.vercel.sh/",
+       "next.span_type": "AppRender.fetch",
+     },
+     "events": Array [],
+     "id": "30048c87bdded52e",
+     "kind": 2,
+     "links": Array [],
+     "name": "fetch GET https://example.vercel.sh/",
+     "parentId": "bde1c69d686673d9",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
+   },
+   Object {
+     "attributes": Object {
+       "custom": "custom1",
+       "next.page": "/app/[param]/layout",
+       "next.span_name": "generateMetadata /app/[param]/layout",
+       "next.span_type": "ResolveMetadata.generateMetadata",
+     },
+     "events": Array [],
+     "id": "a094965a39a40649",
+     "kind": 0,
+     "links": Array [],
+     "name": "generateMetadata /app/[param]/layout",
+     "parentId": "bde1c69d686673d9",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
+   },
+   Object {
+     "attributes": Object {
+       "custom": "custom1",
+       "next.page": "/app/[param]/rsc-fetch/page",
+       "next.span_name": "generateMetadata /app/[param]/rsc-fetch/page",
+       "next.span_type": "ResolveMetadata.generateMetadata",
+     },
+     "events": Array [],
+     "id": "576abf9c6e995800",
+     "kind": 0,
+     "links": Array [],
+     "name": "generateMetadata /app/[param]/rsc-fetch/page",
+     "parentId": "bde1c69d686673d9",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
      },
+     "traceId": "[trace-id]",
+   },
+   Object {
+     "attributes": Object {
+       "custom": "custom1",
+       "http.method": "GET",
+       "http.route": "/app/[param]/rsc-fetch",
+       "http.status_code": 200,
+       "http.target": "/app/param/rsc-fetch",
+       "next.route": "/app/[param]/rsc-fetch",
+       "next.rsc": false,
+       "next.span_name": "GET /app/[param]/rsc-fetch",
+       "next.span_type": "BaseServer.handleRequest",
+     },
+     "events": Array [],
+     "id": "c72b0b6adc3d2777",
+     "kind": 1,
+     "links": Array [],
      "name": "GET /app/[param]/rsc-fetch",
+     "parentId": undefined,
+     "runtime": "nodejs",
+     "spans": Array [
+       Object {
+         "attributes": Object {
+           "custom": "custom1",
+           "next.route": "/app/[param]/rsc-fetch",
+           "next.span_name": "resolve page components",
+           "next.span_type": "NextNodeServer.findPageComponents",
+         },
+         "events": Array [],
+         "id": "ca59ac293933aa5e",
+         "kind": 0,
+         "links": Array [],
+         "name": "resolve page components",
+         "parentId": "c72b0b6adc3d2777",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "[trace-id]",
+       },
+     ],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
+   },
+   Object {
+     "attributes": Object {
+       "custom": "custom1",
+       "next.clientComponentLoadCount": 6,
+       "next.span_type": "NextNodeServer.clientComponentLoading",
+     },
+     "events": Array [],
+     "id": "6a2b3692fc0e7549",
+     "kind": 0,
+     "links": Array [],
+     "name": "NextNodeServer.clientComponentLoading",
+     "parentId": "bde1c69d686673d9",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
+   },
+   Object {
+     "attributes": Object {
+       "custom": "custom1",
+       "next.span_name": "start response",
+       "next.span_type": "NextNodeServer.startResponse",
+     },
+     "events": Array [],
+     "id": "119d3a503286989b",
+     "kind": 0,
+     "links": Array [],
+     "name": "start response",
+     "parentId": "bde1c69d686673d9",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
    },
  ]

  753 |
  754 |   if (hardError) {
> 755 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  756 |   }
  757 |   return false
  758 | }

  at check (lib/next-test-utils.ts:755:11)
  at expectTrace (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:1129:3)
  at Object.<anonymous> (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:215:13)

● opentelemetry › root context › app router › should handle RSC with fetch on edge

TIMED OUT: success

undefined

Error: expect(received).toMatchObject(expected)

- Expected  - 29
+ Received  + 59

@@ -1,111 +1,141 @@
  Array [
    Object {
      "attributes": Object {
-       "http.method": "GET",
-       "http.route": "/app/[param]/rsc-fetch/edge",
-       "http.status_code": 200,
-       "http.target": "/app/param/rsc-fetch/edge?param=param",
-       "next.route": "/app/[param]/rsc-fetch/edge",
-       "next.span_name": "GET /app/[param]/rsc-fetch/edge",
-       "next.span_type": "BaseServer.handleRequest",
-     },
-     "kind": 1,
-     "name": "GET /app/[param]/rsc-fetch/edge",
-     "parentId": undefined,
-     "runtime": "edge",
-     "spans": Array [
-       Object {
-         "attributes": Object {
-           "next.route": "/app/[param]/rsc-fetch/edge",
-           "next.span_name": "render route (app) /app/[param]/rsc-fetch/edge",
-           "next.span_type": "AppRender.getBodyResult",
-         },
-         "kind": 0,
-         "name": "render route (app) /app/[param]/rsc-fetch/edge",
-         "spans": Array [
-           Object {
-             "attributes": Object {
        "next.span_name": "build component tree",
        "next.span_type": "NextNodeServer.createComponentTree",
      },
+     "events": Array [],
+     "id": "0ea5fcdedf9536fe",
      "kind": 0,
+     "links": Array [],
      "name": "build component tree",
+     "parentId": "24a741fe4c015693",
+     "runtime": "edge",
      "spans": Array [
        Object {
          "attributes": Object {
            "next.segment": "__PAGE__",
            "next.span_name": "resolve segment modules",
            "next.span_type": "NextNodeServer.getLayoutOrPageModule",
          },
+         "events": Array [],
+         "id": "91b0ea9c55555d2f",
          "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "0ea5fcdedf9536fe",
+         "runtime": "edge",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "[trace-id]",
        },
        Object {
          "attributes": Object {
            "next.segment": "[param]",
            "next.span_name": "resolve segment modules",
            "next.span_type": "NextNodeServer.getLayoutOrPageModule",
          },
+         "events": Array [],
+         "id": "b1a0a2d6c34a570b",
          "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "0ea5fcdedf9536fe",
+         "runtime": "edge",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "[trace-id]",
        },
      ],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
    Object {
      "attributes": Object {
        "http.method": "GET",
        "http.url": "https://example.vercel.sh/",
        "net.peer.name": "example.vercel.sh",
        "next.span_name": "fetch GET https://example.vercel.sh/",
        "next.span_type": "AppRender.fetch",
      },
+     "events": Array [],
+     "id": "9d9e476b856b600a",
      "kind": 2,
+     "links": Array [],
      "name": "fetch GET https://example.vercel.sh/",
+     "parentId": "24a741fe4c015693",
+     "runtime": "edge",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
    Object {
      "attributes": Object {
        "next.page": "/app/[param]/layout",
        "next.span_name": "generateMetadata /app/[param]/layout",
        "next.span_type": "ResolveMetadata.generateMetadata",
      },
+     "events": Array [],
+     "id": "a572dc99f9bacca5",
      "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/layout",
+     "parentId": "24a741fe4c015693",
+     "runtime": "edge",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
    Object {
      "attributes": Object {
        "next.page": "/app/[param]/rsc-fetch/edge/page",
        "next.span_name": "generateMetadata /app/[param]/rsc-fetch/edge/page",
        "next.span_type": "ResolveMetadata.generateMetadata",
      },
+     "events": Array [],
+     "id": "988e787c8ade2f7a",
      "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/rsc-fetch/edge/page",
+     "parentId": "24a741fe4c015693",
+     "runtime": "edge",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
-         ],
-         "status": Object {
-           "code": 0,
+   Object {
+     "attributes": Object {
+       "http.method": "GET",
+       "http.route": "/app/[param]/rsc-fetch/edge",
+       "http.status_code": 200,
+       "http.target": "/app/param/rsc-fetch/edge?param=param",
+       "next.route": "/app/[param]/rsc-fetch/edge",
+       "next.rsc": false,
+       "next.span_name": "GET /app/[param]/rsc-fetch/edge",
+       "next.span_type": "BaseServer.handleRequest",
      },
-       },
-     ],
+     "events": Array [],
+     "id": "3837534686004a5f",
+     "kind": 1,
+     "links": Array [],
+     "name": "GET /app/[param]/rsc-fetch/edge",
+     "parentId": undefined,
+     "runtime": "edge",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
      "traceId": "[trace-id]",
    },

  753 |
  754 |   if (hardError) {
> 755 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  756 |   }
  757 |   return false
  758 | }

  at check (lib/next-test-utils.ts:755:11)
  at expectTrace (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:1129:3)
  at Object.<anonymous> (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:228:13)

● opentelemetry › root context › app router › should trace middleware

TIMED OUT: success

undefined

Error: expect(received).toMatchObject(expected)

- Expected  -   0
+ Received  + 164

@@ -4,13 +4,112 @@
        "http.method": "GET",
        "http.target": "/behind-middleware",
        "next.span_name": "middleware GET",
        "next.span_type": "Middleware.execute",
      },
+     "events": Array [],
+     "id": "cc0b8320e40e4449",
+     "kind": 0,
+     "links": Array [],
      "name": "middleware GET",
      "parentId": undefined,
      "runtime": "edge",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
+   },
+   Object {
+     "attributes": Object {
+       "next.span_name": "build component tree",
+       "next.span_type": "NextNodeServer.createComponentTree",
+     },
+     "events": Array [],
+     "id": "8c4712658c0b3fba",
+     "kind": 0,
+     "links": Array [],
+     "name": "build component tree",
+     "parentId": "63861480dd0e7732",
+     "runtime": "nodejs",
+     "spans": Array [
+       Object {
+         "attributes": Object {
+           "next.segment": "__PAGE__",
+           "next.span_name": "resolve segment modules",
+           "next.span_type": "NextNodeServer.getLayoutOrPageModule",
+         },
+         "events": Array [],
+         "id": "933062064520c2ec",
+         "kind": 0,
+         "links": Array [],
+         "name": "resolve segment modules",
+         "parentId": "8c4712658c0b3fba",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "[trace-id]",
+       },
+       Object {
+         "attributes": Object {
+           "next.segment": "behind-middleware",
+           "next.span_name": "resolve segment modules",
+           "next.span_type": "NextNodeServer.getLayoutOrPageModule",
+         },
+         "events": Array [],
+         "id": "3006e060a0409638",
+         "kind": 0,
+         "links": Array [],
+         "name": "resolve segment modules",
+         "parentId": "8c4712658c0b3fba",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "[trace-id]",
+       },
+     ],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
+   },
+   Object {
+     "attributes": Object {
+       "next.page": "/behind-middleware/layout",
+       "next.span_name": "generateMetadata /behind-middleware/layout",
+       "next.span_type": "ResolveMetadata.generateMetadata",
+     },
+     "events": Array [],
+     "id": "e08f9c6dfb1c9cbd",
+     "kind": 0,
+     "links": Array [],
+     "name": "generateMetadata /behind-middleware/layout",
+     "parentId": "63861480dd0e7732",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
+   },
+   Object {
+     "attributes": Object {
+       "next.page": "/behind-middleware/page",
+       "next.span_name": "generateMetadata /behind-middleware/page",
+       "next.span_type": "ResolveMetadata.generateMetadata",
+     },
+     "events": Array [],
+     "id": "064fd03bd4f34e53",
+     "kind": 0,
+     "links": Array [],
+     "name": "generateMetadata /behind-middleware/page",
+     "parentId": "63861480dd0e7732",
+     "runtime": "nodejs",
      "spans": Array [],
      "status": Object {
        "code": 0,
      },
      "traceId": "[trace-id]",
@@ -20,14 +119,79 @@
        "http.method": "GET",
        "http.route": "/behind-middleware",
        "http.status_code": 200,
        "http.target": "/behind-middleware",
        "next.route": "/behind-middleware",
+       "next.rsc": false,
        "next.span_name": "GET /behind-middleware",
        "next.span_type": "BaseServer.handleRequest",
      },
+     "events": Array [],
+     "id": "a6f761b8242e8f34",
+     "kind": 1,
+     "links": Array [],
      "name": "GET /behind-middleware",
      "parentId": undefined,
      "runtime": "nodejs",
+     "spans": Array [
+       Object {
+         "attributes": Object {
+           "next.route": "/behind-middleware",
+           "next.span_name": "resolve page components",
+           "next.span_type": "NextNodeServer.findPageComponents",
+         },
+         "events": Array [],
+         "id": "043d14f227ba8b25",
+         "kind": 0,
+         "links": Array [],
+         "name": "resolve page components",
+         "parentId": "a6f761b8242e8f34",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "[trace-id]",
+       },
+     ],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
+   },
+   Object {
+     "attributes": Object {
+       "next.clientComponentLoadCount": 6,
+       "next.span_type": "NextNodeServer.clientComponentLoading",
+     },
+     "events": Array [],
+     "id": "74b6914a2ca594ac",
+     "kind": 0,
+     "links": Array [],
+     "name": "NextNodeServer.clientComponentLoading",
+     "parentId": "63861480dd0e7732",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
+   },
+   Object {
+     "attributes": Object {
+       "next.span_name": "start response",
+       "next.span_type": "NextNodeServer.startResponse",
+     },
+     "events": Array [],
+     "id": "df8fb2c40e381c6c",
+     "kind": 0,
+     "links": Array [],
+     "name": "start response",
+     "parentId": "63861480dd0e7732",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
      "traceId": "[trace-id]",
    },
  ]

  753 |
  754 |   if (hardError) {
> 755 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  756 |   }
  757 |   return false
  758 | }

  at check (lib/next-test-utils.ts:755:11)
  at expectTrace (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:1129:3)
  at Object.<anonymous> (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:453:13)

● opentelemetry › root context › app router › should handle error in RSC

TIMED OUT: success

undefined

Error: expect(received).toMatchObject(expected)

- Expected  - 42
+ Received  + 87

  Array [
    Object {
      "attributes": Object {
-       "error.type": "500",
-       "http.method": "GET",
-       "http.route": "/app/[param]/rsc-fetch/error",
-       "http.status_code": 500,
-       "http.target": "/app/param/rsc-fetch/error?status=error",
-       "next.route": "/app/[param]/rsc-fetch/error",
-       "next.rsc": false,
-       "next.span_name": "GET /app/[param]/rsc-fetch/error",
-       "next.span_type": "BaseServer.handleRequest",
-     },
-     "kind": 1,
-     "name": "GET /app/[param]/rsc-fetch/error",
-     "parentId": undefined,
-     "spans": Array [
-       Object {
-         "attributes": Object {
-           "next.route": "/app/[param]/rsc-fetch/error",
-           "next.span_name": "render route (app) /app/[param]/rsc-fetch/error",
-           "next.span_type": "AppRender.getBodyResult",
-         },
-         "kind": 0,
-         "name": "render route (app) /app/[param]/rsc-fetch/error",
-         "spans": Array [
-           Object {
-             "attributes": Object {
        "next.span_name": "build component tree",
        "next.span_type": "NextNodeServer.createComponentTree",
      },
+     "events": Array [],
+     "id": "833815a582dc0349",
      "kind": 0,
+     "links": Array [],
      "name": "build component tree",
+     "parentId": "f48a9e98a5295f09",
+     "runtime": "nodejs",
      "spans": Array [
        Object {
          "attributes": Object {
            "next.segment": "__PAGE__",
            "next.span_name": "resolve segment modules",
            "next.span_type": "NextNodeServer.getLayoutOrPageModule",
          },
+         "events": Array [],
+         "id": "e544cd3374a3580b",
          "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "833815a582dc0349",
+         "runtime": "nodejs",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "[trace-id]",
        },
        Object {
          "attributes": Object {
            "next.segment": "[param]",
            "next.span_name": "resolve segment modules",
            "next.span_type": "NextNodeServer.getLayoutOrPageModule",
          },
+         "events": Array [],
+         "id": "e8dbbfd2940fa5fc",
          "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "833815a582dc0349",
+         "runtime": "nodejs",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "[trace-id]",
        },
      ],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
    Object {
      "attributes": Object {
        "next.page": "/app/[param]/layout",
        "next.span_name": "generateMetadata /app/[param]/layout",
        "next.span_type": "ResolveMetadata.generateMetadata",
      },
+     "events": Array [],
+     "id": "b99d22503be035ed",
      "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/layout",
+     "parentId": "f48a9e98a5295f09",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
    Object {
      "attributes": Object {
        "next.page": "/app/[param]/layout",
        "next.span_name": "generateMetadata /app/[param]/layout",
        "next.span_type": "ResolveMetadata.generateMetadata",
      },
+     "events": Array [],
+     "id": "79ee65f7d9532736",
      "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/layout",
+     "parentId": "f48a9e98a5295f09",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
    Object {
      "attributes": Object {
-               "next.clientComponentLoadCount": 8,
-               "next.span_type": "NextNodeServer.clientComponentLoading",
-             },
-             "kind": 0,
-             "name": "NextNodeServer.clientComponentLoading",
-             "status": Object {
-               "code": 0,
-             },
+       "error.type": "500",
+       "http.method": "GET",
+       "http.route": "/app/[param]/rsc-fetch/error",
+       "http.status_code": 500,
+       "http.target": "/app/param/rsc-fetch/error?status=error",
+       "next.route": "/app/[param]/rsc-fetch/error",
+       "next.rsc": false,
+       "next.span_name": "GET /app/[param]/rsc-fetch/error",
+       "next.span_type": "BaseServer.handleRequest",
      },
+     "events": Array [],
+     "id": "88e1d1a1c271f2cc",
+     "kind": 1,
+     "links": Array [],
+     "name": "GET /app/[param]/rsc-fetch/error",
+     "parentId": undefined,
+     "runtime": "nodejs",
+     "spans": Array [
        Object {
          "attributes": Object {
-               "next.span_name": "start response",
-               "next.span_type": "NextNodeServer.startResponse",
+           "next.route": "/app/[param]/rsc-fetch/error",
+           "next.span_name": "resolve page components",
+           "next.span_type": "NextNodeServer.findPageComponents",
          },
+         "events": Array [],
+         "id": "6d815ed2d52c14d8",
          "kind": 0,
-             "name": "start response",
+         "links": Array [],
+         "name": "resolve page components",
+         "parentId": "88e1d1a1c271f2cc",
+         "runtime": "nodejs",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "[trace-id]",
        },
      ],
      "status": Object {
        "code": 2,
      },
+     "traceId": "[trace-id]",
    },
    Object {
      "attributes": Object {
-           "next.route": "/app/[param]/rsc-fetch/error",
-           "next.span_name": "resolve page components",
-           "next.span_type": "NextNodeServer.findPageComponents",
+       "next.clientComponentLoadCount": 8,
+       "next.span_type": "NextNodeServer.clientComponentLoading",
      },
+     "events": Array [],
+     "id": "cd27a57a4d9febf0",
      "kind": 0,
-         "name": "resolve page components",
+     "links": Array [],
+     "name": "NextNodeServer.clientComponentLoading",
+     "parentId": "f48a9e98a5295f09",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "[trace-id]",
    },
-     ],
+   Object {
+     "attributes": Object {
+       "next.span_name": "start response",
+       "next.span_type": "NextNodeServer.startResponse",
+     },
+     "events": Array [],
+     "id": "08f3795078c9c952",
+     "kind": 0,
+     "links": Array [],
+     "name": "start response",
+     "parentId": "f48a9e98a5295f09",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
-       "code": 2,
+       "code": 0,
      },
      "traceId": "[trace-id]",
    },
  ]

  753 |
  754 |   if (hardError) {
> 755 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  756 |   }
  757 |   return false
  758 | }

  at check (lib/next-test-utils.ts:755:11)
  at expectTrace (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:1129:3)
  at Object.<anonymous> (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:493:13)

● opentelemetry › incoming context propagation › app router › should handle RSC with fetch

TIMED OUT: success

undefined

Error: expect(received).toMatchObject(expected)

- Expected  - 40
+ Received  + 92

@@ -1,145 +1,197 @@
  Array [
    Object {
      "attributes": Object {
-       "http.method": "GET",
-       "http.route": "/app/[param]/rsc-fetch",
-       "http.status_code": 200,
-       "http.target": "/app/param/rsc-fetch",
-       "next.route": "/app/[param]/rsc-fetch",
-       "next.rsc": false,
-       "next.span_name": "GET /app/[param]/rsc-fetch",
-       "next.span_type": "BaseServer.handleRequest",
-     },
-     "kind": 1,
-     "name": "GET /app/[param]/rsc-fetch",
-     "parentId": "0f6a325411bdc432",
-     "spans": Array [
-       Object {
-         "attributes": Object {
-           "next.route": "/app/[param]/rsc-fetch",
-           "next.span_name": "render route (app) /app/[param]/rsc-fetch",
-           "next.span_type": "AppRender.getBodyResult",
-         },
-         "kind": 0,
-         "name": "render route (app) /app/[param]/rsc-fetch",
-         "spans": Array [
-           Object {
-             "attributes": Object {
        "next.span_name": "build component tree",
        "next.span_type": "NextNodeServer.createComponentTree",
      },
+     "events": Array [],
+     "id": "2731387add5a3e42",
      "kind": 0,
+     "links": Array [],
      "name": "build component tree",
+     "parentId": "c11ad503db64e2be",
+     "runtime": "nodejs",
      "spans": Array [
        Object {
          "attributes": Object {
            "next.segment": "__PAGE__",
            "next.span_name": "resolve segment modules",
            "next.span_type": "NextNodeServer.getLayoutOrPageModule",
          },
+         "events": Array [],
+         "id": "804db29ed9a672da",
          "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "2731387add5a3e42",
+         "runtime": "nodejs",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
        },
        Object {
          "attributes": Object {
            "next.segment": "[param]",
            "next.span_name": "resolve segment modules",
            "next.span_type": "NextNodeServer.getLayoutOrPageModule",
          },
+         "events": Array [],
+         "id": "fb8b2a0334ba2c24",
          "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "2731387add5a3e42",
+         "runtime": "nodejs",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
        },
      ],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
    Object {
      "attributes": Object {
        "http.method": "GET",
        "http.url": "https://example.vercel.sh/",
        "net.peer.name": "example.vercel.sh",
        "next.span_name": "fetch GET https://example.vercel.sh/",
        "next.span_type": "AppRender.fetch",
      },
+     "events": Array [],
+     "id": "4487a63abf938a45",
      "kind": 2,
+     "links": Array [],
      "name": "fetch GET https://example.vercel.sh/",
+     "parentId": "c11ad503db64e2be",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
    Object {
      "attributes": Object {
        "next.page": "/app/[param]/layout",
        "next.span_name": "generateMetadata /app/[param]/layout",
        "next.span_type": "ResolveMetadata.generateMetadata",
      },
+     "events": Array [],
+     "id": "b09a4c97982e5b2e",
      "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/layout",
+     "parentId": "c11ad503db64e2be",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
    Object {
      "attributes": Object {
        "next.page": "/app/[param]/rsc-fetch/page",
        "next.span_name": "generateMetadata /app/[param]/rsc-fetch/page",
        "next.span_type": "ResolveMetadata.generateMetadata",
      },
+     "events": Array [],
+     "id": "5f1dfeef56358d22",
      "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/rsc-fetch/page",
+     "parentId": "c11ad503db64e2be",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
    Object {
      "attributes": Object {
-               "next.clientComponentLoadCount": 6,
-               "next.span_type": "NextNodeServer.clientComponentLoading",
-             },
-             "kind": 0,
-             "name": "NextNodeServer.clientComponentLoading",
-             "status": Object {
-               "code": 0,
-             },
+       "http.method": "GET",
+       "http.route": "/app/[param]/rsc-fetch",
+       "http.status_code": 200,
+       "http.target": "/app/param/rsc-fetch",
+       "next.route": "/app/[param]/rsc-fetch",
+       "next.rsc": false,
+       "next.span_name": "GET /app/[param]/rsc-fetch",
+       "next.span_type": "BaseServer.handleRequest",
      },
+     "events": Array [],
+     "id": "7cbbbd4cdd570280",
+     "kind": 1,
+     "links": Array [],
+     "name": "GET /app/[param]/rsc-fetch",
+     "parentId": "0f6a325411bdc432",
+     "runtime": "nodejs",
+     "spans": Array [
        Object {
          "attributes": Object {
-               "next.span_name": "start response",
-               "next.span_type": "NextNodeServer.startResponse",
+           "next.route": "/app/[param]/rsc-fetch",
+           "next.span_name": "resolve page components",
+           "next.span_type": "NextNodeServer.findPageComponents",
          },
+         "events": Array [],
+         "id": "05feb3484536333b",
          "kind": 0,
-             "name": "start response",
+         "links": Array [],
+         "name": "resolve page components",
+         "parentId": "7cbbbd4cdd570280",
+         "runtime": "nodejs",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
        },
      ],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
    Object {
      "attributes": Object {
-           "next.route": "/app/[param]/rsc-fetch",
-           "next.span_name": "resolve page components",
-           "next.span_type": "NextNodeServer.findPageComponents",
+       "next.clientComponentLoadCount": 6,
+       "next.span_type": "NextNodeServer.clientComponentLoading",
      },
+     "events": Array [],
+     "id": "5a061615e7c38c5d",
      "kind": 0,
-         "name": "resolve page components",
+     "links": Array [],
+     "name": "NextNodeServer.clientComponentLoading",
+     "parentId": "c11ad503db64e2be",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
-     ],
+   Object {
+     "attributes": Object {
+       "next.span_name": "start response",
+       "next.span_type": "NextNodeServer.startResponse",
+     },
+     "events": Array [],
+     "id": "c3d623959326e20d",
+     "kind": 0,
+     "links": Array [],
+     "name": "start response",
+     "parentId": "c11ad503db64e2be",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
      "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },

  753 |
  754 |   if (hardError) {
> 755 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  756 |   }
  757 |   return false
  758 | }

  at check (lib/next-test-utils.ts:755:11)
  at expectTrace (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:1129:3)
  at Object.<anonymous> (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:73:13)

● opentelemetry › incoming context propagation › app router › should propagate custom context without span

TIMED OUT: success

undefined

Error: expect(received).toMatchObject(expected)

- Expected  -   0
+ Received  + 200

  Array [
    Object {
      "attributes": Object {
        "custom": "custom1",
+       "next.span_name": "build component tree",
+       "next.span_type": "NextNodeServer.createComponentTree",
+     },
+     "events": Array [],
+     "id": "8b36729a910a699e",
+     "kind": 0,
+     "links": Array [],
+     "name": "build component tree",
+     "parentId": "135409a1d558bc40",
+     "runtime": "nodejs",
+     "spans": Array [
+       Object {
+         "attributes": Object {
+           "custom": "custom1",
+           "next.segment": "__PAGE__",
+           "next.span_name": "resolve segment modules",
+           "next.span_type": "NextNodeServer.getLayoutOrPageModule",
+         },
+         "events": Array [],
+         "id": "ceafd05a26891a8a",
+         "kind": 0,
+         "links": Array [],
+         "name": "resolve segment modules",
+         "parentId": "8b36729a910a699e",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+       },
+       Object {
+         "attributes": Object {
+           "custom": "custom1",
+           "next.segment": "[param]",
+           "next.span_name": "resolve segment modules",
+           "next.span_type": "NextNodeServer.getLayoutOrPageModule",
+         },
+         "events": Array [],
+         "id": "4eccb8a9ad773ee5",
+         "kind": 0,
+         "links": Array [],
+         "name": "resolve segment modules",
+         "parentId": "8b36729a910a699e",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+       },
+     ],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+   },
+   Object {
+     "attributes": Object {
+       "custom": "custom1",
+       "http.method": "GET",
+       "http.url": "https://example.vercel.sh/",
+       "net.peer.name": "example.vercel.sh",
+       "next.span_name": "fetch GET https://example.vercel.sh/",
+       "next.span_type": "AppRender.fetch",
+     },
+     "events": Array [],
+     "id": "6e7b4d0cebff1546",
+     "kind": 2,
+     "links": Array [],
+     "name": "fetch GET https://example.vercel.sh/",
+     "parentId": "135409a1d558bc40",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+   },
+   Object {
+     "attributes": Object {
+       "custom": "custom1",
+       "next.page": "/app/[param]/layout",
+       "next.span_name": "generateMetadata /app/[param]/layout",
+       "next.span_type": "ResolveMetadata.generateMetadata",
+     },
+     "events": Array [],
+     "id": "708ec1eae0d8fef7",
+     "kind": 0,
+     "links": Array [],
+     "name": "generateMetadata /app/[param]/layout",
+     "parentId": "135409a1d558bc40",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+   },
+   Object {
+     "attributes": Object {
+       "custom": "custom1",
+       "next.page": "/app/[param]/rsc-fetch/page",
+       "next.span_name": "generateMetadata /app/[param]/rsc-fetch/page",
+       "next.span_type": "ResolveMetadata.generateMetadata",
+     },
+     "events": Array [],
+     "id": "62a457e5e16968c6",
+     "kind": 0,
+     "links": Array [],
+     "name": "generateMetadata /app/[param]/rsc-fetch/page",
+     "parentId": "135409a1d558bc40",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+   },
+   Object {
+     "attributes": Object {
+       "custom": "custom1",
+       "http.method": "GET",
+       "http.route": "/app/[param]/rsc-fetch",
+       "http.status_code": 200,
+       "http.target": "/app/param/rsc-fetch",
+       "next.route": "/app/[param]/rsc-fetch",
+       "next.rsc": false,
+       "next.span_name": "GET /app/[param]/rsc-fetch",
+       "next.span_type": "BaseServer.handleRequest",
+     },
+     "events": Array [],
+     "id": "a4bfe1cabb2a8179",
+     "kind": 1,
+     "links": Array [],
      "name": "GET /app/[param]/rsc-fetch",
+     "parentId": "0f6a325411bdc432",
+     "runtime": "nodejs",
+     "spans": Array [
+       Object {
+         "attributes": Object {
+           "custom": "custom1",
+           "next.route": "/app/[param]/rsc-fetch",
+           "next.span_name": "resolve page components",
+           "next.span_type": "NextNodeServer.findPageComponents",
+         },
+         "events": Array [],
+         "id": "25e62074e64b9ef1",
+         "kind": 0,
+         "links": Array [],
+         "name": "resolve page components",
+         "parentId": "a4bfe1cabb2a8179",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+       },
+     ],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+   },
+   Object {
+     "attributes": Object {
+       "custom": "custom1",
+       "next.clientComponentLoadCount": 6,
+       "next.span_type": "NextNodeServer.clientComponentLoading",
+     },
+     "events": Array [],
+     "id": "3ebeca81f13e30d2",
+     "kind": 0,
+     "links": Array [],
+     "name": "NextNodeServer.clientComponentLoading",
+     "parentId": "135409a1d558bc40",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+   },
+   Object {
+     "attributes": Object {
+       "custom": "custom1",
+       "next.span_name": "start response",
+       "next.span_type": "NextNodeServer.startResponse",
+     },
+     "events": Array [],
+     "id": "d8814cb6a6d28f3e",
+     "kind": 0,
+     "links": Array [],
+     "name": "start response",
+     "parentId": "135409a1d558bc40",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
  ]

  753 |
  754 |   if (hardError) {
> 755 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  756 |   }
  757 |   return false
  758 | }

  at check (lib/next-test-utils.ts:755:11)
  at expectTrace (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:1129:3)
  at Object.<anonymous> (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:215:13)

● opentelemetry › incoming context propagation › app router › should handle RSC with fetch on edge

TIMED OUT: success

undefined

Error: expect(received).toMatchObject(expected)

- Expected  - 29
+ Received  + 59

@@ -1,111 +1,141 @@
  Array [
    Object {
      "attributes": Object {
-       "http.method": "GET",
-       "http.route": "/app/[param]/rsc-fetch/edge",
-       "http.status_code": 200,
-       "http.target": "/app/param/rsc-fetch/edge?param=param",
-       "next.route": "/app/[param]/rsc-fetch/edge",
-       "next.span_name": "GET /app/[param]/rsc-fetch/edge",
-       "next.span_type": "BaseServer.handleRequest",
-     },
-     "kind": 1,
-     "name": "GET /app/[param]/rsc-fetch/edge",
-     "parentId": "0f6a325411bdc432",
-     "runtime": "edge",
-     "spans": Array [
-       Object {
-         "attributes": Object {
-           "next.route": "/app/[param]/rsc-fetch/edge",
-           "next.span_name": "render route (app) /app/[param]/rsc-fetch/edge",
-           "next.span_type": "AppRender.getBodyResult",
-         },
-         "kind": 0,
-         "name": "render route (app) /app/[param]/rsc-fetch/edge",
-         "spans": Array [
-           Object {
-             "attributes": Object {
        "next.span_name": "build component tree",
        "next.span_type": "NextNodeServer.createComponentTree",
      },
+     "events": Array [],
+     "id": "a3c014a825bdcce0",
      "kind": 0,
+     "links": Array [],
      "name": "build component tree",
+     "parentId": "4c6293a7a0ab2c8e",
+     "runtime": "edge",
      "spans": Array [
        Object {
          "attributes": Object {
            "next.segment": "__PAGE__",
            "next.span_name": "resolve segment modules",
            "next.span_type": "NextNodeServer.getLayoutOrPageModule",
          },
+         "events": Array [],
+         "id": "3d0ae0381b574aa7",
          "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "a3c014a825bdcce0",
+         "runtime": "edge",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
        },
        Object {
          "attributes": Object {
            "next.segment": "[param]",
            "next.span_name": "resolve segment modules",
            "next.span_type": "NextNodeServer.getLayoutOrPageModule",
          },
+         "events": Array [],
+         "id": "ca8bfe822fd3d4c8",
          "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "a3c014a825bdcce0",
+         "runtime": "edge",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
        },
      ],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
    Object {
      "attributes": Object {
        "http.method": "GET",
        "http.url": "https://example.vercel.sh/",
        "net.peer.name": "example.vercel.sh",
        "next.span_name": "fetch GET https://example.vercel.sh/",
        "next.span_type": "AppRender.fetch",
      },
+     "events": Array [],
+     "id": "fe880ee39ac7e5e8",
      "kind": 2,
+     "links": Array [],
      "name": "fetch GET https://example.vercel.sh/",
+     "parentId": "4c6293a7a0ab2c8e",
+     "runtime": "edge",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
    Object {
      "attributes": Object {
        "next.page": "/app/[param]/layout",
        "next.span_name": "generateMetadata /app/[param]/layout",
        "next.span_type": "ResolveMetadata.generateMetadata",
      },
+     "events": Array [],
+     "id": "e77691b98c8562ff",
      "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/layout",
+     "parentId": "4c6293a7a0ab2c8e",
+     "runtime": "edge",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
    Object {
      "attributes": Object {
        "next.page": "/app/[param]/rsc-fetch/edge/page",
        "next.span_name": "generateMetadata /app/[param]/rsc-fetch/edge/page",
        "next.span_type": "ResolveMetadata.generateMetadata",
      },
+     "events": Array [],
+     "id": "3276317f6ecd821c",
      "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/rsc-fetch/edge/page",
+     "parentId": "4c6293a7a0ab2c8e",
+     "runtime": "edge",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
-         ],
-         "status": Object {
-           "code": 0,
+   Object {
+     "attributes": Object {
+       "http.method": "GET",
+       "http.route": "/app/[param]/rsc-fetch/edge",
+       "http.status_code": 200,
+       "http.target": "/app/param/rsc-fetch/edge?param=param",
+       "next.route": "/app/[param]/rsc-fetch/edge",
+       "next.rsc": false,
+       "next.span_name": "GET /app/[param]/rsc-fetch/edge",
+       "next.span_type": "BaseServer.handleRequest",
      },
-       },
-     ],
+     "events": Array [],
+     "id": "40e460b6d40ff7ad",
+     "kind": 1,
+     "links": Array [],
+     "name": "GET /app/[param]/rsc-fetch/edge",
+     "parentId": "0f6a325411bdc432",
+     "runtime": "edge",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
      "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },

  753 |
  754 |   if (hardError) {
> 755 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  756 |   }
  757 |   return false
  758 | }

  at check (lib/next-test-utils.ts:755:11)
  at expectTrace (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:1129:3)
  at Object.<anonymous> (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:228:13)

● opentelemetry › incoming context propagation › app router › should trace middleware

TIMED OUT: success

undefined

Error: expect(received).toMatchObject(expected)

- Expected  -   0
+ Received  + 164

@@ -4,13 +4,112 @@
        "http.method": "GET",
        "http.target": "/behind-middleware",
        "next.span_name": "middleware GET",
        "next.span_type": "Middleware.execute",
      },
+     "events": Array [],
+     "id": "5ae2eed8efb269d6",
+     "kind": 0,
+     "links": Array [],
      "name": "middleware GET",
      "parentId": "0f6a325411bdc432",
      "runtime": "edge",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+   },
+   Object {
+     "attributes": Object {
+       "next.span_name": "build component tree",
+       "next.span_type": "NextNodeServer.createComponentTree",
+     },
+     "events": Array [],
+     "id": "f0563778cd08fac7",
+     "kind": 0,
+     "links": Array [],
+     "name": "build component tree",
+     "parentId": "396b31ad241b9aad",
+     "runtime": "nodejs",
+     "spans": Array [
+       Object {
+         "attributes": Object {
+           "next.segment": "__PAGE__",
+           "next.span_name": "resolve segment modules",
+           "next.span_type": "NextNodeServer.getLayoutOrPageModule",
+         },
+         "events": Array [],
+         "id": "2b3aeaf6a89b153c",
+         "kind": 0,
+         "links": Array [],
+         "name": "resolve segment modules",
+         "parentId": "f0563778cd08fac7",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+       },
+       Object {
+         "attributes": Object {
+           "next.segment": "behind-middleware",
+           "next.span_name": "resolve segment modules",
+           "next.span_type": "NextNodeServer.getLayoutOrPageModule",
+         },
+         "events": Array [],
+         "id": "4d80f0e11d83673a",
+         "kind": 0,
+         "links": Array [],
+         "name": "resolve segment modules",
+         "parentId": "f0563778cd08fac7",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+       },
+     ],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+   },
+   Object {
+     "attributes": Object {
+       "next.page": "/behind-middleware/layout",
+       "next.span_name": "generateMetadata /behind-middleware/layout",
+       "next.span_type": "ResolveMetadata.generateMetadata",
+     },
+     "events": Array [],
+     "id": "976d0629877ce571",
+     "kind": 0,
+     "links": Array [],
+     "name": "generateMetadata /behind-middleware/layout",
+     "parentId": "396b31ad241b9aad",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+   },
+   Object {
+     "attributes": Object {
+       "next.page": "/behind-middleware/page",
+       "next.span_name": "generateMetadata /behind-middleware/page",
+       "next.span_type": "ResolveMetadata.generateMetadata",
+     },
+     "events": Array [],
+     "id": "1ab63a1567d8cff4",
+     "kind": 0,
+     "links": Array [],
+     "name": "generateMetadata /behind-middleware/page",
+     "parentId": "396b31ad241b9aad",
+     "runtime": "nodejs",
      "spans": Array [],
      "status": Object {
        "code": 0,
      },
      "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
@@ -20,14 +119,79 @@
        "http.method": "GET",
        "http.route": "/behind-middleware",
        "http.status_code": 200,
        "http.target": "/behind-middleware",
        "next.route": "/behind-middleware",
+       "next.rsc": false,
        "next.span_name": "GET /behind-middleware",
        "next.span_type": "BaseServer.handleRequest",
      },
+     "events": Array [],
+     "id": "40d059d50537c7db",
+     "kind": 1,
+     "links": Array [],
      "name": "GET /behind-middleware",
      "parentId": "0f6a325411bdc432",
      "runtime": "nodejs",
+     "spans": Array [
+       Object {
+         "attributes": Object {
+           "next.route": "/behind-middleware",
+           "next.span_name": "resolve page components",
+           "next.span_type": "NextNodeServer.findPageComponents",
+         },
+         "events": Array [],
+         "id": "a46cc7c34b92a7d5",
+         "kind": 0,
+         "links": Array [],
+         "name": "resolve page components",
+         "parentId": "40d059d50537c7db",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+       },
+     ],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+   },
+   Object {
+     "attributes": Object {
+       "next.clientComponentLoadCount": 6,
+       "next.span_type": "NextNodeServer.clientComponentLoading",
+     },
+     "events": Array [],
+     "id": "db2acd20eaa9de57",
+     "kind": 0,
+     "links": Array [],
+     "name": "NextNodeServer.clientComponentLoading",
+     "parentId": "396b31ad241b9aad",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
+   },
+   Object {
+     "attributes": Object {
+       "next.span_name": "start response",
+       "next.span_type": "NextNodeServer.startResponse",
+     },
+     "events": Array [],
+     "id": "51788e581a54ea59",
+     "kind": 0,
+     "links": Array [],
+     "name": "start response",
+     "parentId": "396b31ad241b9aad",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
      "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
  ]

  753 |
  754 |   if (hardError) {
> 755 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  756 |   }
  757 |   return false
  758 | }

  at check (lib/next-test-utils.ts:755:11)
  at expectTrace (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:1129:3)
  at Object.<anonymous> (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:453:13)

● opentelemetry › incoming context propagation › app router › should handle error in RSC

TIMED OUT: success

undefined

Error: expect(received).toMatchObject(expected)

- Expected  - 42
+ Received  + 87

  Array [
    Object {
      "attributes": Object {
-       "error.type": "500",
-       "http.method": "GET",
-       "http.route": "/app/[param]/rsc-fetch/error",
-       "http.status_code": 500,
-       "http.target": "/app/param/rsc-fetch/error?status=error",
-       "next.route": "/app/[param]/rsc-fetch/error",
-       "next.rsc": false,
-       "next.span_name": "GET /app/[param]/rsc-fetch/error",
-       "next.span_type": "BaseServer.handleRequest",
-     },
-     "kind": 1,
-     "name": "GET /app/[param]/rsc-fetch/error",
-     "parentId": "0f6a325411bdc432",
-     "spans": Array [
-       Object {
-         "attributes": Object {
-           "next.route": "/app/[param]/rsc-fetch/error",
-           "next.span_name": "render route (app) /app/[param]/rsc-fetch/error",
-           "next.span_type": "AppRender.getBodyResult",
-         },
-         "kind": 0,
-         "name": "render route (app) /app/[param]/rsc-fetch/error",
-         "spans": Array [
-           Object {
-             "attributes": Object {
        "next.span_name": "build component tree",
        "next.span_type": "NextNodeServer.createComponentTree",
      },
+     "events": Array [],
+     "id": "4a2099c9dd5cd5c5",
      "kind": 0,
+     "links": Array [],
      "name": "build component tree",
+     "parentId": "db6617a675db97d5",
+     "runtime": "nodejs",
      "spans": Array [
        Object {
          "attributes": Object {
            "next.segment": "__PAGE__",
            "next.span_name": "resolve segment modules",
            "next.span_type": "NextNodeServer.getLayoutOrPageModule",
          },
+         "events": Array [],
+         "id": "798621566810e812",
          "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "4a2099c9dd5cd5c5",
+         "runtime": "nodejs",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
        },
        Object {
          "attributes": Object {
            "next.segment": "[param]",
            "next.span_name": "resolve segment modules",
            "next.span_type": "NextNodeServer.getLayoutOrPageModule",
          },
+         "events": Array [],
+         "id": "ca2fb6ba18c4961f",
          "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "4a2099c9dd5cd5c5",
+         "runtime": "nodejs",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
        },
      ],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
    Object {
      "attributes": Object {
        "next.page": "/app/[param]/layout",
        "next.span_name": "generateMetadata /app/[param]/layout",
        "next.span_type": "ResolveMetadata.generateMetadata",
      },
+     "events": Array [],
+     "id": "4b343eb5d01699e6",
      "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/layout",
+     "parentId": "db6617a675db97d5",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
    Object {
      "attributes": Object {
        "next.page": "/app/[param]/layout",
        "next.span_name": "generateMetadata /app/[param]/layout",
        "next.span_type": "ResolveMetadata.generateMetadata",
      },
+     "events": Array [],
+     "id": "44e5a5bf3ecfdf54",
      "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/layout",
+     "parentId": "db6617a675db97d5",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
    Object {
      "attributes": Object {
-               "next.clientComponentLoadCount": 8,
-               "next.span_type": "NextNodeServer.clientComponentLoading",
-             },
-             "kind": 0,
-             "name": "NextNodeServer.clientComponentLoading",
-             "status": Object {
-               "code": 0,
-             },
+       "error.type": "500",
+       "http.method": "GET",
+       "http.route": "/app/[param]/rsc-fetch/error",
+       "http.status_code": 500,
+       "http.target": "/app/param/rsc-fetch/error?status=error",
+       "next.route": "/app/[param]/rsc-fetch/error",
+       "next.rsc": false,
+       "next.span_name": "GET /app/[param]/rsc-fetch/error",
+       "next.span_type": "BaseServer.handleRequest",
      },
+     "events": Array [],
+     "id": "0863c673607f1505",
+     "kind": 1,
+     "links": Array [],
+     "name": "GET /app/[param]/rsc-fetch/error",
+     "parentId": "0f6a325411bdc432",
+     "runtime": "nodejs",
+     "spans": Array [
        Object {
          "attributes": Object {
-               "next.span_name": "start response",
-               "next.span_type": "NextNodeServer.startResponse",
+           "next.route": "/app/[param]/rsc-fetch/error",
+           "next.span_name": "resolve page components",
+           "next.span_type": "NextNodeServer.findPageComponents",
          },
+         "events": Array [],
+         "id": "4c792c48445dead0",
          "kind": 0,
-             "name": "start response",
+         "links": Array [],
+         "name": "resolve page components",
+         "parentId": "0863c673607f1505",
+         "runtime": "nodejs",
+         "spans": Array [],
          "status": Object {
            "code": 0,
          },
+         "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
        },
      ],
      "status": Object {
        "code": 2,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
    Object {
      "attributes": Object {
-           "next.route": "/app/[param]/rsc-fetch/error",
-           "next.span_name": "resolve page components",
-           "next.span_type": "NextNodeServer.findPageComponents",
+       "next.clientComponentLoadCount": 8,
+       "next.span_type": "NextNodeServer.clientComponentLoading",
      },
+     "events": Array [],
+     "id": "66940dc6b3c9843b",
      "kind": 0,
-         "name": "resolve page components",
+     "links": Array [],
+     "name": "NextNodeServer.clientComponentLoading",
+     "parentId": "db6617a675db97d5",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
        "code": 0,
      },
+     "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
-     ],
+   Object {
+     "attributes": Object {
+       "next.span_name": "start response",
+       "next.span_type": "NextNodeServer.startResponse",
+     },
+     "events": Array [],
+     "id": "4d41666ec88bdf76",
+     "kind": 0,
+     "links": Array [],
+     "name": "start response",
+     "parentId": "db6617a675db97d5",
+     "runtime": "nodejs",
+     "spans": Array [],
      "status": Object {
-       "code": 2,
+       "code": 0,
      },
      "traceId": "ee75cd9e534ff5e9ed78b4a0c706f0f2",
    },
  ]

  753 |
  754 |   if (hardError) {
> 755 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  756 |   }
  757 |   return false
  758 | }

  at check (lib/next-test-utils.ts:755:11)
  at expectTrace (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:1129:3)
  at Object.<anonymous> (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:493:13)

● opentelemetry with disabled fetch tracing › root context › app router with disabled fetch › should handle RSC with disabled fetch

TIMED OUT: success

undefined

Error: expect(received).toMatchObject(expected)

- Expected  -  11
+ Received  + 148

  Array [
    Object {
-     "name": "GET /app/[param]/rsc-fetch",
-     "parentId": undefined,
-     "spans": Array [
-       Object {
-         "name": "render route (app) /app/[param]/rsc-fetch",
-         "spans": Array [
-           Object {
+     "attributes": Object {
+       "next.span_name": "build component tree",
+       "next.span_type": "NextNodeServer.createComponentTree",
+     },
+     "events": Array [],
+     "id": "c8c929bfeed18372",
+     "kind": 0,
+     "links": Array [],
      "name": "build component tree",
+     "parentId": "88475ce49f162699",
+     "runtime": "nodejs",
      "spans": Array [
        Object {
+         "attributes": Object {
+           "next.segment": "__PAGE__",
+           "next.span_name": "resolve segment modules",
+           "next.span_type": "NextNodeServer.getLayoutOrPageModule",
+         },
+         "events": Array [],
+         "id": "fe5990aafd1e93fd",
+         "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "c8c929bfeed18372",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "[trace-id]",
        },
        Object {
+         "attributes": Object {
+           "next.segment": "[param]",
+           "next.span_name": "resolve segment modules",
+           "next.span_type": "NextNodeServer.getLayoutOrPageModule",
+         },
+         "events": Array [],
+         "id": "56a988e1fdc69e8b",
+         "kind": 0,
+         "links": Array [],
          "name": "resolve segment modules",
+         "parentId": "c8c929bfeed18372",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "[trace-id]",
        },
      ],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
    },
    Object {
+     "attributes": Object {
+       "next.page": "/app/[param]/layout",
+       "next.span_name": "generateMetadata /app/[param]/layout",
+       "next.span_type": "ResolveMetadata.generateMetadata",
+     },
+     "events": Array [],
+     "id": "9e18ad3a880671d6",
+     "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/layout",
+     "parentId": "88475ce49f162699",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
    },
    Object {
+     "attributes": Object {
+       "next.page": "/app/[param]/rsc-fetch/page",
+       "next.span_name": "generateMetadata /app/[param]/rsc-fetch/page",
+       "next.span_type": "ResolveMetadata.generateMetadata",
+     },
+     "events": Array [],
+     "id": "733af8ca383c5d86",
+     "kind": 0,
+     "links": Array [],
      "name": "generateMetadata /app/[param]/rsc-fetch/page",
+     "parentId": "88475ce49f162699",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
      },
+     "traceId": "[trace-id]",
+   },
    Object {
-             "name": "NextNodeServer.clientComponentLoading",
+     "attributes": Object {
+       "http.method": "GET",
+       "http.route": "/app/[param]/rsc-fetch",
+       "http.status_code": 200,
+       "http.target": "/app/param/rsc-fetch",
+       "next.route": "/app/[param]/rsc-fetch",
+       "next.rsc": false,
+       "next.span_name": "GET /app/[param]/rsc-fetch",
+       "next.span_type": "BaseServer.handleRequest",
      },
+     "events": Array [],
+     "id": "d3d9fb407166d449",
+     "kind": 1,
+     "links": Array [],
+     "name": "GET /app/[param]/rsc-fetch",
+     "parentId": undefined,
+     "runtime": "nodejs",
+     "spans": Array [
        Object {
-             "name": "start response",
+         "attributes": Object {
+           "next.route": "/app/[param]/rsc-fetch",
+           "next.span_name": "resolve page components",
+           "next.span_type": "NextNodeServer.findPageComponents",
+         },
+         "events": Array [],
+         "id": "a1b892445bc1b783",
+         "kind": 0,
+         "links": Array [],
+         "name": "resolve page components",
+         "parentId": "d3d9fb407166d449",
+         "runtime": "nodejs",
+         "spans": Array [],
+         "status": Object {
+           "code": 0,
+         },
+         "traceId": "[trace-id]",
        },
      ],
+     "status": Object {
+       "code": 0,
      },
+     "traceId": "[trace-id]",
+   },
    Object {
-         "name": "resolve page components",
+     "attributes": Object {
+       "next.clientComponentLoadCount": 6,
+       "next.span_type": "NextNodeServer.clientComponentLoading",
+     },
+     "events": Array [],
+     "id": "9456cff3a48c0b0f",
+     "kind": 0,
+     "links": Array [],
+     "name": "NextNodeServer.clientComponentLoading",
+     "parentId": "88475ce49f162699",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
+     },
+     "traceId": "[trace-id]",
+   },
+   Object {
+     "attributes": Object {
+       "next.span_name": "start response",
+       "next.span_type": "NextNodeServer.startResponse",
+     },
+     "events": Array [],
+     "id": "da9abd23b773e2ab",
+     "kind": 0,
+     "links": Array [],
+     "name": "start response",
+     "parentId": "88475ce49f162699",
+     "runtime": "nodejs",
+     "spans": Array [],
+     "status": Object {
+       "code": 0,
      },
-     ],
      "traceId": "[trace-id]",
    },
  ]

  753 |
  754 |   if (hardError) {
> 755 |     throw new Error('TIMED OUT: ' + regex + '\n\n' + content + '\n\n' + lastErr)
      |           ^
  756 |   }
  757 |   return false
  758 | }

  at check (lib/next-test-utils.ts:755:11)
  at expectTrace (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:1129:3)
  at Object.<anonymous> (e2e/opentelemetry/instrumentation/opentelemetry.test.ts:1075:11)

pnpm test-start test/e2e/app-dir/segment-cache/search-params/segment-cache-search-params.test.ts

  • segment cache (search params) > stores prefetched data by its rewritten search params, not the original ones (DD)
Expand output

● segment cache (search params) › stores prefetched data by its rewritten search params, not the original ones

thrown: "Exceeded timeout of 120000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

  142 |   })
  143 |
> 144 |   it('stores prefetched data by its rewritten search params, not the original ones', async () => {
      |   ^
  145 |     let act: ReturnType<typeof createRouterAct>
  146 |     const browser = await next.browser('/search-params', {
  147 |       beforePageLoad(page) {

  at it (e2e/app-dir/segment-cache/search-params/segment-cache-search-params.test.ts:144:3)
  at Object.describe (e2e/app-dir/segment-cache/search-params/segment-cache-search-params.test.ts:5:1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Bypass Graphite Optimization Ignore Graphite CI optimizations, run the full CI suite. https://graphite.dev/docs/stacking-and-ci created-by: Next.js team PRs by the Next.js team. tests type: next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants