@@ -38,7 +38,7 @@ Configuration should happen as early as possible in your application's lifecycle
38
38
39
39
To initialize Sentry in your Vue application, add the following code snippet to your ` main.js ` :
40
40
41
- ``` javascript {tabTitle:Vue 3} {filename:main.js} {"onboardingOptions": {"performance": "16, 19-25", "session-replay": "17, 29-35"}}
41
+ ``` javascript {tabTitle:Vue 3} {filename:main.js} {3, 12-36} { "onboardingOptions": {"performance": "16, 19-25", "session-replay": "17, 29-35"} }
42
42
import { createApp } from " vue" ;
43
43
import { createRouter } from " vue-router" ;
44
44
import * as Sentry from " @sentry/vue" ;
@@ -80,7 +80,7 @@ app.use(router);
80
80
app .mount (" #app" );
81
81
```
82
82
83
- ``` javascript {tabTitle:Vue 2} {filename:main.js} {"onboardingOptions": {"performance": "15, 18-24", "session-replay": "16, 28-34"}}
83
+ ``` javascript {tabTitle:Vue 2} {filename:main.js} {3, 11-35} { "onboardingOptions": {"performance": "15, 18-24", "session-replay": "16, 28-34"}}
84
84
import Vue from " vue" ;
85
85
import Router from " vue-router" ;
86
86
import * as Sentry from " @sentry/vue" ;
@@ -127,14 +127,6 @@ new Vue({
127
127
128
128
If you're creating more than one Vue 3 app within your application, check out how to initialize the SDK for [ multiple apps] ( ./features/multiple-apps ) .
129
129
130
- ### Vue-Specific configuration
131
-
132
- The SDK accepts a few Vue-specific ` Sentry.init ` configuration options:
133
-
134
- - ` attachProps ` (defaults to ` true ` ) - Includes all Vue components' props with the events.
135
- - ` logErrors ` (defaults to ` true ` ) - Decides whether SDK should call Vue's original ` logError ` function as well.
136
- - Check out how to [ Track Vue Components] ( ./features/component-tracking ) for performance.
137
-
138
130
### Late-Defined Vue Apps
139
131
140
132
If the Vue application is not defined from the start, you can add error monitoring for Vue-specific errors later on.
0 commit comments