Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

experimental clientTraceMetadata feature does not produce meta tags #2924

Open
Labels
Next.js e2e test failureErrors identified through the Next.js repo e2e tests
@pieh

Description

Example failure:

 くろまる clientTraceMetadata › app router › should inject propagation data for a dynamically server-side-rendered page
 expect(received).toContain(expected) // indexOf
 Expected substring: "<meta name=\"my-test-key-1\" content=\"my-test-value-1\">"
 Received string: "<head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><link rel=\"preload\" as=\"script\" fetchpriority=\"low\" href=\"/_next/static/chunks/webpack-193d6f1dd590c8a5.js\"><script src=\"/_next/static/chunks/4bd1b696-0d720e2a8e3347a2.js\" async></script><script src=\"/_next/static/chunks/684-d355f4db0abc1a0f.js\" async></script><script src=\"/_next/static/chunks/main-app-0170bb3ac93153a0.js\" async></script><script>document.querySelectorAll('body link[rel=\"icon\"], body link[rel=\"apple-touch-icon\"]').forEach(el => document.head.appendChild(el))</script><script src=\"/_next/static/chunks/polyfills-42372ed130431b0a.js\" nomodule></script></head>"
 11 | const $ = await next.render$('/app-router/dynamic-page')
 12 | const headHtml = $.html('head')
 > 13 | expect(headHtml).toContain(
 | ^
 14 | '<meta name="my-test-key-1" content="my-test-value-1">'
 15 | )
 16 | expect(headHtml).toContain(
 at Object.toContain (e2e/opentelemetry/client-trace-metadata/client-trace-metadata.test.ts:13:24)

It appears that something in our handling prevents Next.js from producing expected <meta> tags when clientTraceMetadata experimental feature is enabled.

Data

The following is parsed automatically by the Next.js repo e2e test report generator.

test: test/e2e/opentelemetry/client-trace-metadata/client-trace-metadata.test.ts
reason: clientTraceMetadata experimental feature not supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    Next.js e2e test failureErrors identified through the Next.js repo e2e tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /