Commit 55abfa8
committed
fix(nextjs): Backfill route on pages-router API transaction
The pages-router API wrapper no longer creates its own transaction and instead
binds onto Next.js's BaseServer.handleRequest root span. For an API route that
span carries no http.route/next.route, so enhanceHandleRequestRootSpan never sets
the route source and the transaction keeps a "custom" source. Set the route
backfill attribute the same way the data-fetcher wrapper does so the transaction
gets a "route" source and a parameterized http.route.1 parent 3109b7e commit 55abfa8
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
0 commit comments