Files
convex-monorepo/apps/next/src/instrumentation.ts
2026-01-13 15:56:34 -06:00

8 lines
283 B
TypeScript

import type { Instrumentation } from 'next';
import * as Sentry from '@sentry/nextjs';
export const register = async () => await import('./sentry.server.config');
export const onRequestError: Instrumentation.onRequestError = (...args) => {
Sentry.captureRequestError(...args);
};