Skip to content

Commit

Permalink
feat(vue/nuxt)!: No longer create "update" spans for component trac…
Browse files Browse the repository at this point in the history
…king by default (#14602)

Resolves #12851
  • Loading branch information
lforst authored and mydea committed Dec 13, 2024
1 parent 5e65c87 commit fac8d97
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions docs/migration/draft-v9-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,28 @@
});
```

## `@sentry/nuxt` and `@sentry/vue`

- When component tracking is enabled, "update" spans are no longer created by default.
Add an `"update"` item to the `tracingOptions.hooks` option via the `vueIntegration()` to restore this behavior.

```ts
Sentry.init({
integrations: [
Sentry.vueIntegration({
tracingOptions: {
trackComponents: true,
hooks: [
'mount',
'update', // <--
'unmount',
],
},
}),
],
});
```

## `@sentry/astro`

- Deprecated passing `dsn`, `release`, `environment`, `sampleRate`, `tracesSampleRate`, `replaysSessionSampleRate` to the integration. Use the runtime-specific `Sentry.init()` calls for passing these options instead.
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import type { Operation } from './types';

export const DEFAULT_HOOKS: Operation[] = ['activate', 'mount', 'update'];
export const DEFAULT_HOOKS: Operation[] = ['activate', 'mount'];

0 comments on commit fac8d97

Please sign in to comment.