feat(nextjs): Add route handler instrumentation#8832
Conversation
size-limit report 📦
|
AbhiPrasad
left a comment
There was a problem hiding this comment.
So does this get react server components working as well?
I wonder if we can attach react server component payloads for debugging and having some fancy parsing for them in the Sentry UI
RSCs have been working since a very long time |
I was under the impression that automatic instrumentation didn't work - do you have example transactions to look at? |
|
I'm a dummy - of course I helped review these PRs as well Then we should try to see if we can RSC payload into those transaction events. |
I don't understand what you mean by RSC payload. It's just a messed up version of HTML that is returned. Are we tracking response contents in other places too? Also, this PR has nothing to do with RSCs. This is just adding instrumentation for the app router's version of API routes. |
RSC stuff was a complete aside - I misunderstood the scope of this PR. I'd imagine this working like how the new GraphQL stuff works as per getsentry/sentry#50230. There has been value in this, see https://rsc-parser.vercel.app/ |
…formance' into lforst-app-router-route-handler
|
Thanks @lforst and colleagues – been looking forward to this for a while! |
packages/e2e-tests/test-applications/nextjs-app-dir/sentry.edge.config.ts
Outdated
Show resolved
Hide resolved
|
hey @lforst ! Is this fix already included in v7.66 or still is yet to be included in an upcoming release? |
|
@edgarlr it'll be out with the next release! |
|
I tried the beta version and got this issue: #8934, but the capturing seemed to work. |
|
Fixed for above issue was released in 7.67.0! |
Resolves #7228
Adds support for route handlers by:
This does not yet properly implement
RequestDatametadata. We will do this in a follow-up.