Skip to content

Commit 241084d

Browse files
authored
ref(vue): Update logErrors description (#6392)
Following getsentry/sentry-javascript#7310 where we flipped the default value of `logErrors` from `false` to `true`, this PR updates the docs accordingly and removes the now obsolete warning regarding the SDK suppressing error logs by default.
1 parent 5e6fce0 commit 241084d

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

src/platform-includes/getting-started-config/javascript.vue.mdx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,11 @@ Sentry.init({
100100

101101
const miscApp = createApp(MiscApp);
102102
miscApp.mixin(Sentry.createTracingMixins({ trackComponents: true }));
103-
Sentry.attachErrorHandler(miscApp, { logErrors: true });
103+
Sentry.attachErrorHandler(miscApp);
104104
```
105105

106106
The SDK accepts a few different configuration options that let you change its behavior:
107107

108108
- `attachProps` (defaults to `true`) - Includes all Vue components' props with the events.
109-
- `logErrors` (defaults to `false`) - Decides whether SDK should call Vue's original `logError` function as well.
109+
- `logErrors` (defaults to `true`) - Decides whether SDK should call Vue's original `logError` function as well.
110110
- `trackComponents` (defaults to `false`) - Track your app's components. Learn more about [component tracking](./features/component-tracking) and all its options.
111-
112-
<Note>
113-
114-
If you enable the SDK, Vue will not call its `logError` internally. As a result, errors occurring in the Vue renderer will not display in the developer console. To preserve this functionality, pass the `logErrors: true` option.
115-
116-
</Note>

src/wizard/javascript/vue.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,3 @@ app.mount("#app");
100100
```
101101

102102
We recommend adjusting the value of `tracesSampleRate` in production. Learn more about configuring sampling in our [full documentation](https://docs.sentry.io/platforms/javascript/configuration/sampling/).
103-
104-
<div class="alert alert-warning" role="alert"><h5 class="no_toc">Vue Error Handling</h5><div class="alert-body content-flush-bottom">
105-
Please note that if you enable this integration, by default Vue will not call its `logError` internally.
106-
This means that errors occurring in the Vue renderer will not show up in the developer console.
107-
If you want to preserve this functionality, make sure to pass the `logErrors: true` option.
108-
</div>
109-
</div>

0 commit comments

Comments
 (0)