Skip to content

Commit a7db4e4

Browse files
author
Luca Forstner
committed
feat(nuxt): Deprecate tracingOptions in favor of vueIntegration
1 parent 0ac81c4 commit a7db4e4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@
6868

6969
- Deprecated `Request` in favor of `RequestEventData`.
7070

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

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

packages/vue/src/sdk.ts

Lines changed: 8 additions & 1 deletion
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)