Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
> = {},
): Client | undefined {
const options = {
_metadata: {
Expand Down
Loading