Skip to content

Commit 146bafc

Browse files
authored
feat(nuxt): Deprecate tracingOptions in favor of vueIntegration (#14530)
1 parent 87b789c commit 146bafc

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

docs/migration/draft-v9-migration-guide.md

+4
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070

7171
- Deprecated `Request` in favor of `RequestEventData`.
7272

73+
## `@sentry/nuxt`
74+
75+
- Deprecated `tracingOptions` in `Sentry.init()` in favor of passing the `vueIntegration()` to `Sentry.init({ integrations: [...] })` and setting `tracingOptions` there.
76+
7377
## `@sentry/vue`
7478

7579
- Deprecated `tracingOptions`, `trackComponents`, `timeout`, `hooks` options everywhere other than in the `tracingOptions` option of the `vueIntegration()`.

packages/vue/src/sdk.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ import type { Options, TracingOptions } from './types';
88
* Inits the Vue SDK
99
*/
1010
export function init(
11-
config: Partial<Omit<Options, 'tracingOptions'> & { tracingOptions: Partial<TracingOptions> }> = {},
11+
config: Partial<
12+
Omit<Options, 'tracingOptions'> & {
13+
/**
14+
* @deprecated Add the `vueIntegration()` and pass the `tracingOptions` there instead.
15+
*/
16+
tracingOptions: Partial<TracingOptions>;
17+
}
18+
> = {},
1219
): Client | undefined {
1320
const options = {
1421
_metadata: {

0 commit comments

Comments
 (0)