You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/en/guide/setup.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,9 +49,15 @@ Then, add `@nuxtjs/sentry` to the `modules` section of `nuxt.config.js`:
49
49
}
50
50
```
51
51
52
+
<alerttype="info">
53
+
54
+
For Typescript or type-checked JavaScript projects, you might have to install the `@sentry/tracing` package even when not using the tracing functionality. In that case, the package can be installed as a dev-only dependency.
55
+
56
+
</alert>
57
+
52
58
## Types
53
59
54
-
For typescript projects, add `@nuxtjs/sentry` to tsconfig types array
60
+
In Typescript or type-checked JavaScript projects, add `@nuxtjs/sentry` to the `types` array in `tsconfig.json` to enable module types.
55
61
56
62
```json [tsconfig.json]
57
63
{
@@ -65,4 +71,4 @@ For typescript projects, add `@nuxtjs/sentry` to tsconfig types array
65
71
66
72
## Configuration
67
73
68
-
See [Options](/sentry/options) for a list of available options
74
+
See [Options](/sentry/options) for a list of available options.
Copy file name to clipboardExpand all lines: docs/content/en/sentry/options.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -316,12 +316,11 @@ export default function () {
316
316
{
317
317
tracesSampleRate: 1.0,
318
318
trackComponents: true
319
-
hooks: [ 'mount', 'update' ],
320
-
timeout: 2000,
321
-
tracePropagationTargets: ['localhost', /^\//]
319
+
browserTracing: {}
322
320
}
323
321
```
324
322
- Sentry documentation strongly recommends reducing the `tracesSampleRate` value; it should be between 0.0 and 1.0 (percentage of requests to capture)
323
+
- See available [browserTracing options](https://docs.sentry.io/platforms/javascript/guides/vue/performance/instrumentation/automatic-instrumentation/#configuration-options)
0 commit comments