Skip to content

Commit

Permalink
feat(nuxt): Deprecate tracingOptions in favor of vueIntegration (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Dec 2, 2024
1 parent 87b789c commit 146bafc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/migration/draft-v9-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`.
Expand Down
9 changes: 8 additions & 1 deletion packages/vue/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ import type { Options, TracingOptions } from './types';
* Inits the Vue SDK
*/
export function init(
config: Partial<Omit<Options, 'tracingOptions'> & { tracingOptions: Partial<TracingOptions> }> = {},
config: Partial<
Omit<Options, 'tracingOptions'> & {
/**
* @deprecated Add the `vueIntegration()` and pass the `tracingOptions` there instead.
*/
tracingOptions: Partial<TracingOptions>;
}
> = {},
): Client | undefined {
const options = {
_metadata: {
Expand Down

0 comments on commit 146bafc

Please sign in to comment.