@@ -38,7 +38,7 @@ Configuration should happen as early as possible in your application's lifecycle
3838
3939To initialize Sentry in your Vue application, add the following code snippet to your ` main.js ` :
4040
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"} }
4242import { createApp } from " vue" ;
4343import { createRouter } from " vue-router" ;
4444import * as Sentry from " @sentry/vue" ;
@@ -80,7 +80,7 @@ app.use(router);
8080app .mount (" #app" );
8181```
8282
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"}}
8484import Vue from " vue" ;
8585import Router from " vue-router" ;
8686import * as Sentry from " @sentry/vue" ;
@@ -127,14 +127,6 @@ new Vue({
127127
128128If 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 ) .
129129
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-
138130### Late-Defined Vue Apps
139131
140132If the Vue application is not defined from the start, you can add error monitoring for Vue-specific errors later on.
0 commit comments