Skip to content

Commit 3e1a3c8

Browse files
committed
feat(vue/nuxt)!: No longer create "update" spans for component tracking by default (#14602)
Resolves #12851
1 parent c87024f commit 3e1a3c8

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,28 @@
107107
});
108108
```
109109

110+
## `@sentry/nuxt` and `@sentry/vue`
111+
112+
- When component tracking is enabled, "update" spans are no longer created by default.
113+
Add an `"update"` item to the `tracingOptions.hooks` option via the `vueIntegration()` to restore this behavior.
114+
115+
```ts
116+
Sentry.init({
117+
integrations: [
118+
Sentry.vueIntegration({
119+
tracingOptions: {
120+
trackComponents: true,
121+
hooks: [
122+
'mount',
123+
'update', // <--
124+
'unmount',
125+
],
126+
},
127+
}),
128+
],
129+
});
130+
```
131+
110132
## `@sentry/astro`
111133

112134
- Deprecated passing `dsn`, `release`, `environment`, `sampleRate`, `tracesSampleRate`, `replaysSessionSampleRate` to the integration. Use the runtime-specific `Sentry.init()` calls for passing these options instead.

packages/vue/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import type { Operation } from './types';
22

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

0 commit comments

Comments
 (0)