Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Full support for Next.js 14/15 App Router, Server Actions, RSC, and Edge Runtime.
npm install @traceback/nextjs
npx @traceback/cli init nextjs
instrumentation.ts
// instrumentation.ts export async function register() { if (process.env.NEXT_RUNTIME === "nodejs") { await import("./traceback.server.config"); } if (process.env.NEXT_RUNTIME === "edge") { await import("./traceback.edge.config"); } }
// traceback.client.config.ts import * as Traceback from "@traceback/nextjs"; Traceback.init({ dsn: process.env.NEXT_PUBLIC_TRACEBACK_DSN, tracesSampleRate: 0.1, replaysOnErrorSampleRate: 1.0, });