diff --git a/docs/migration/draft-v9-migration-guide.md b/docs/migration/draft-v9-migration-guide.md index 3b915d45dd30..684fd40ab894 100644 --- a/docs/migration/draft-v9-migration-guide.md +++ b/docs/migration/draft-v9-migration-guide.md @@ -70,6 +70,10 @@ - Deprecated `Request` in favor of `RequestEventData`. +## `@sentry/nuxt` + +- Deprecated `tracingOptions` in `Sentry.init()` in favor of passing the `vueIntegration()` to `Sentry.init({ integrations: [...] })` and setting `tracingOptions` there. + ## `@sentry/vue` - Deprecated `tracingOptions`, `trackComponents`, `timeout`, `hooks` options everywhere other than in the `tracingOptions` option of the `vueIntegration()`. diff --git a/packages/vue/src/sdk.ts b/packages/vue/src/sdk.ts index 97698255877d..532da6f350f4 100644 --- a/packages/vue/src/sdk.ts +++ b/packages/vue/src/sdk.ts @@ -8,7 +8,14 @@ import type { Options, TracingOptions } from './types'; * Inits the Vue SDK */ export function init( - config: Partial & { tracingOptions: Partial }> = {}, + config: Partial< + Omit & { + /** + * @deprecated Add the `vueIntegration()` and pass the `tracingOptions` there instead. + */ + tracingOptions: Partial; + } + > = {}, ): Client | undefined { const options = { _metadata: {