Skip to content

Commit 290f357

Browse files
authored
ref(vue): Update Vue component tracking docs (#12008)
1 parent f7379a1 commit 290f357

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

platform-includes/performance/configure-sample-rate/javascript.vue.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,15 @@ If you want to track child components, you can configure the SDK using additiona
2929
```javascript
3030
Sentry.init({
3131
Vue,
32+
integrations: [
33+
Sentry.vueIntegration({
34+
tracingOptions: {
35+
trackComponents: ["Header", "Navigation", "Footer"],
36+
hooks: ["create", "mount"],
37+
},
38+
}),
39+
],
3240
tracesSampleRate: 0.1,
33-
trackComponents: ["Header", "Navigation", "Footer"],
34-
hooks: ["create", "mount"],
3541
});
3642
```
3743

0 commit comments

Comments
 (0)