Skip to content

Commit d1ee444

Browse files
authored
feat(vue/nuxt)!: No longer create "update" spans for component tracking by default (#14602)
Resolves #12851
1 parent 7846b24 commit d1ee444

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
@@ -102,6 +102,28 @@
102102
});
103103
```
104104

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

107129
- 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)