Skip to content

@manovaspace/observability

Thin glue for Next.js instrumentation.ts with Sentry. @sentry/nextjs is optional — helpers no-op when a DSN is unset.

Terminal window
pnpm add @manovaspace/observability

Peers: next. Optional: @sentry/nextjs. Also works with npm or yarn.

instrumentation.ts (project root)

export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
const { registerNextInstrumentation } = await import(
"@manovaspace/observability/next"
);
await registerNextInstrumentation({ serviceName: "my-app" });
}
}

Environment

NEXT_PUBLIC_SENTRY_DSN=https://…@sentry.example/…
Export Description
registerNextInstrumentation Call from Next.js instrumentation.ts (nodejs runtime)
initObservability Lower-level init from @manovaspace/observability