Skip to content

Next.js and GraphCommerce trace each request in the trace of the gateway - #116

Merged
paales merged 1 commit into
mainfrom
nextjs-traces
Dec 2, 2026
Merged

paales merged 1 commit into
mainfrom
nextjs-traces

Conversation

@paales

@paales paales commented Dec 2, 2026

Copy link
Copy Markdown
Member

Written by 🤖:

  • The stage otel of the nextjs recipe bundles @vercel/otel 2.3.0 with .platform/otel.mjs into /usr/local/lib/deployyy/deployyy-otel.mjs with esbuild. The project gets no package.
  • inject-instrumentation.mjs writes the instrumentation file. A project instrumentation file becomes instrumentation.project.<ext>, and its register() runs after the SDK of the platform.
  • Only an address inside the cluster gets the traceparent. A GraphQL call has the name of its operation, such as GET graphql CategoryPage.
  • The OTEL values come from the platform: the sampler and the service name leave the Dockerfiles of magento and laravel. A customer cannot send spans to an endpoint of their own.
  • Tested with Next.js 14.2, 15.5 (Pages Router, webpack) and 16.4 (Turbopack, src/, proxy.ts).

… the gateway, named by its route, and carries the trace into the Magento backend, so the Requests page of a storefront lists its requests. The OTEL variables come from the platform for each process.
@paales
paales merged commit a6eb252 into main Dec 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant