getsentry / getsentry/sentry-javascript

Populate attributes for the Next.js insights page for Turbopack

未关闭
#16,215 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Task
主要语言
TypeScript
星标
8.7k
派生
1.8k
平均合并
1 天 17 小时
30 天内合并 PR
515

描述

### Description

We require two attributes on certain spans for the Next.js insights page:

* `sentry.nextjs.function.type` (for example `"Page"`, `"Layout"`, `"generateMetadata"`)
* `sentry.nextjs.function.route` (for example `"/foo/bar/[id]/page"` or `"/foo/bar/[id]/layout`)

The spans that should have these attributes are the default export functions for Page, Layout, etc. files, and all generation functions.

This probably just involves taking spans emitted by Next.js and transforming them to have the right attributes.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。