You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next.js 14.2.x applications don't report spans to the agent.
When configured following the docs, the agent starts, and host metrics work. However, Next.js spans aren't reported, and the AppSignal OpenTelemetry tracer isn't able to identify the current span nor create new ones.
Next.js built-in instrumentation works as the emitted spans can be seen when adding a ConsoleSpanExporter()
instrumentation.ts file to output spans in console and to run AppSignal at the same time.
exportasyncfunctionregister(){if(process.env.NEXT_RUNTIME==="nodejs"){try{const{ NodeTracerProvider }=require("@opentelemetry/sdk-trace-node");const{ BatchSpanProcessor }=require("@opentelemetry/sdk-trace-base");const{ ConsoleSpanExporter }=require("@opentelemetry/sdk-trace-base");constprovider=newNodeTracerProvider();// Just for testing, let's output to consoleprovider.addSpanProcessor(newBatchSpanProcessor(newConsoleSpanExporter()));provider.register();console.log("Tracer provider registered");require("./appsignal.cjs");}catch(error){console.error("Failed to initialize OpenTelemetry:",error);}}}
This issue has not had any activity in 14 days. Please provide a status update if it is still relevant. Closed it if it is no longer relevant. Or move it to another column if it's blocked or requires another look at it. - (More info)
This is a message from the daily scheduled checks.
Next.js 14.2.x applications don't report spans to the agent.
When configured following the docs, the agent starts, and host metrics work. However, Next.js spans aren't reported, and the AppSignal OpenTelemetry tracer isn't able to identify the current span nor create new ones.
Next.js built-in instrumentation works as the emitted spans can be seen when adding a
ConsoleSpanExporter()
instrumentation.ts
file to output spans in console and to run AppSignal at the same time.Next.js 13.x, 14.1.x, and 15 work.
Internal link
The text was updated successfully, but these errors were encountered: