File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ import {
2222import { vercelWaitUntil } from './utils/vercelWaitUntil' ;
2323
2424/**
25- * Wraps a Next.js route handler with performance and error instrumentation.
25+ * Wraps a Next.js App Router Route handler with Sentry error and performance instrumentation.
26+ *
27+ * NOTICE: This wrapper is for App Router API routes. If you are looking to wrap Pages Router API routes use `wrapApiHandlerWithSentry` instead.
2628 */
2729// eslint-disable-next-line @typescript-eslint/no-explicit-any
2830export function wrapRouteHandlerWithSentry < F extends ( ...args : any [ ] ) => any > (
Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ export declare const metrics: typeof clientSdk.metrics & typeof serverSdk.metric
4141export { withSentryConfig } from './config' ;
4242
4343/**
44- * Wraps a Next.js API handler with Sentry error and performance instrumentation.
44+ * Wraps a Next.js Pages Router API route with Sentry error and performance instrumentation.
45+ *
46+ * NOTICE: This wrapper is for Pages Router API routes. If you are looking to wrap App Router API routes use `wrapRouteHandlerWithSentry` instead.
4547 *
4648 * @param handler The handler exported from the API route file.
4749 * @param parameterizedRoute The page's parameterized route.
You can’t perform that action at this time.
0 commit comments