Update Vue and Nuxt component tracking docs: Options API requirement and stale defaults
メンテナーはふだん 1 日以内に返信
@s1gr1d がすでに取り組んでいます。
2026年9月7日 から。
評価
この issue はまだ評価されていません。
説明
SDK
JavaScript SDK
Description
Follow-up to getsentry/sentry-javascript#23375.
Nuxt 5 disables Vue's Options API by default
(nuxt/nuxt#35791), which turns app.mixin() into a silent no-op. The SDK records the default
spans through an app.mount() wrap instead; component tracking (trackComponents) still needs
the Options API.
Affected pages:
- https://docs.sentry.io/platforms/javascript/guides/vue/features/component-tracking/
- https://docs.sentry.io/platforms/javascript/guides/nuxt/features/component-tracking/
What to document
- Component tracking needs the Options API.
trackComponents(and non-defaulthooks)
only work throughapp.mixin(). The SDK logs a console warning when the mixin is unavailable. - Nuxt 5 callout. The Options API is off by default there; component spans need
vue: { optionsApi: true }innuxt.config.ts. Plain Vue users control it through the
__VUE_OPTIONS_API__define in their bundler. - Default spans work without the Options API.
Application Renderand the root
Vue <Root>mount span are always recorded. On Nuxt without the Options API, the root render
span extends until the page's<Suspense>boundary resolves. - Fix the default hook set. Both pages say
['activate', 'mount', 'update']; the SDK
default is['activate', 'mount'](packages/vue/src/constants.ts). - Fix the span op. The Vue page says
ui.vue.render; the SDK emits opui.renderwith
originauto.ui.vue. - Fix the timeout wording. "Waits for the last component to render" is wrong: debounce
timers are per component, so late mounts (async components, lazy routes,<Suspense>) do not
extend the span. It ends with the initial synchronous render. - Root component is always tracked.
hooksapply to the root even with
trackComponents: false, e.g.hooks: ['update']alone produces aVue <Root>ui.update
span. Undocumented on both pages.
References
packages/vue/src/tracing.ts,packages/vue/src/constants.tspackages/vue/test/integration/mixinRegistration.test.ts(root tracking, hook behavior, late
children not extending the span)dev-packages/e2e-tests/test-applications/vue-3/tests/performance.test.ts(delayed async
component, both variants)
Suggested Solution
No response
- 主要言語
- MDX
- スター
- 451
- フォーク
- 1.7k
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 566
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/sentry-docs のほかの issue
-
Docs Product
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
getsentry/sentry-docs#20849 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Vanta EU integration not available anymore対応中かも @sansynx が 51 日前に担当しました。 オープンDocs Product
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
getsentry/sentry-docs#19757 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Document Android network-event breadcrumb configuration対応中かも @sansynx が 67 日前に担当しました。 オープンDocs Platform: Android SDKs
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
getsentry/sentry-docs#19438 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Unused import OpenAIIntegration on Pydantic AI integration page対応中かも @minutechreview が 59 日前に担当しました。 オープンDocs Platform: Python SDKs
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
getsentry/sentry-docs#19432 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Docs Product
難易度 2/5 半日 初心者へのやさしさ 68/100
getsentry/sentry-docs#19028 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信