File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ import {
22
22
import { vercelWaitUntil } from './utils/vercelWaitUntil' ;
23
23
24
24
/**
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.
26
28
*/
27
29
// eslint-disable-next-line @typescript-eslint/no-explicit-any
28
30
export 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
41
41
export { withSentryConfig } from './config' ;
42
42
43
43
/**
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.
45
47
*
46
48
* @param handler The handler exported from the API route file.
47
49
* @param parameterizedRoute The page's parameterized route.
You can’t perform that action at this time.
0 commit comments