File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 17
17
This package is a wrapper around ` @sentry/browser ` , with added functionality related to Vue.js. All methods available in
18
18
` @sentry/browser ` can be imported from ` @sentry/vue ` .
19
19
20
- It targets Vue version ` 2.x ` . Support for ` 3.x ` is tracked by [ GitHub issue # 2925 ] ( https://github.com/getsentry/sentry-javascript/issues/2925 ) .
20
+ To use this SDK, call ` Sentry.init(options) ` as early in your application as possible .
21
21
22
- To use this SDK, call ` Sentry.init(options) ` before you create a new Vue instance.
22
+ ### Vue 3
23
+
24
+ ``` javascript
25
+ const app = createApp ({
26
+ // ...
27
+ });
28
+
29
+ Sentry .init ({
30
+ app,
31
+ dsn: ' __PUBLIC_DSN__' ,
32
+ });
33
+ ```
34
+
35
+ ### Vue 2
23
36
24
37
``` javascript
25
38
import Vue from ' vue'
You can’t perform that action at this time.
0 commit comments