@sentry/nextjs
Version:
Official Sentry SDK for Next.js
17 lines (16 loc) • 502 B
TypeScript
type RequestInfo = {
path: string;
method: string;
headers: Record<string, string | string[] | undefined>;
};
type ErrorContext = {
routerKind: string;
routePath: string;
routeType: string;
};
/**
* Reports errors passed to the the Next.js `onRequestError` instrumentation hook.
*/
export declare function captureRequestError(error: unknown, request: RequestInfo, errorContext: ErrorContext): void;
export {};
//# sourceMappingURL=captureRequestError.d.ts.map