Skip to content

Commit 782b9d1

Browse files
authored
fix: only include 'crash' type for ReportingObserver integration (#560)
1 parent 6c97de6 commit 782b9d1

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

docs/content/en/configuration/options.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Note that the module sets the following defaults when publishing is enabled:
232232
```js
233233
{
234234
ExtraErrorData: {},
235-
ReportingObserver: {},
235+
ReportingObserver: { types: ['crash'] },
236236
RewriteFrames: {},
237237
}
238238
```
@@ -244,8 +244,6 @@ Note that the module sets the following defaults when publishing is enabled:
244244
```js
245245
{
246246
ExtraErrorData: false,
247-
ReportingObserver: {},
248-
RewriteFrames: {},
249247
}
250248
```
251249
- See also [Sentry Browser Integrations](https://docs.sentry.io/platforms/javascript/guides/vue/configuration/integrations/) for more information on configuring each integration.
@@ -268,10 +266,7 @@ Note that the module sets the following defaults when publishing is enabled:
268266
- To disable integration that is enabled by default, pass `false` as a value. For example to disable `ExtraErrorData` integration (only) set the option to:
269267
```js
270268
{
271-
Dedupe: {},
272269
ExtraErrorData: false,
273-
RewriteFrames: {},
274-
Transaction: {},
275270
}
276271
```
277272
- See also [Sentry Server Integrations](https://docs.sentry.io/platforms/node/configuration/integrations/) for more information on configuring each integration.

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default defineNuxtModule<ModuleConfiguration>({
3737
tracing: false,
3838
clientIntegrations: {
3939
ExtraErrorData: {},
40-
ReportingObserver: {},
40+
ReportingObserver: { types: ['crash'] },
4141
RewriteFrames: {},
4242
},
4343
serverIntegrations: {

0 commit comments

Comments
 (0)