-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(nextjs): Instrument app dir route handlers #7369
Conversation
size-limit report 📦
|
This pull request has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
This pull request has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
Superseded by #8832 |
Ref #7228
Instruments Next.js app dir route handlers. We add two new utility functions
wrapRequestHandlerLikeFunctionWithErrorInstrumentation
andwrapRequestHandlerLikeFunctionWithPerformanceInstrumentation
that we immediately use to wrap the route handlers. It is planned that we migrate to these wrappers for all other Next.js functions (data-fetchers, API routes, etc.).