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/sentry/lazy-loading.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ You can also pass a lazy config object in your module options (see [options](/se
20
20
#### `$sentry` (mocked)
21
21
- Type: `Object`
22
22
23
-
Normally `$sentry` would always refer to the `@sentry/browser` API. But if we lazy load Sentry this API wont be available until Sentry has loaded. If you don't want to worry about whether Sentry is loaded or not, a mocked Sentry API is injected into the Nuxt.js context that will execute all Sentry API calls once Sentry is loaded
23
+
Normally `$sentry` would always refer to the `@sentry/vue` API. But if we lazy load Sentry this API wont be available until Sentry has loaded. If you don't want to worry about whether Sentry is loaded or not, a mocked Sentry API is injected into the Nuxt.js context that will execute all Sentry API calls once Sentry is loaded
24
24
25
25
See: [`injectMock`](/sentry/options#lazy) and [`mockApiMethods`](/sentry/options#lazy) options.
- Sentry by default also enables these browser integrations: `InboundFilters`, `FunctionToString`, `TryCatch`, `Breadcrumbs`, `GlobalHandlers`, `LinkedErrors`, `UserAgent`. Their options can be overridden by specifying them manually in the object.
@@ -307,7 +306,7 @@ export default function () {
307
306
308
307
<alert type="info">
309
308
310
-
`@sentry/tracing@6` (version 6 and not newer) should be installed manually when using this option.
309
+
`@sentry/tracing@7` (version 7 and not newer) should be installed manually when using this option.
311
310
312
311
</alert>
313
312
@@ -316,20 +315,13 @@ export default function () {
316
315
```js
317
316
{
318
317
tracesSampleRate: 1.0,
319
-
vueOptions: {
320
-
tracing: true,
321
-
tracingOptions: {
322
-
hooks: [ 'mount', 'update' ],
323
-
timeout: 2000,
324
-
trackComponents: true
325
-
}
326
-
},
327
-
browserOptions: {}
318
+
trackComponents: true
319
+
hooks: [ 'mount', 'update' ],
320
+
timeout: 2000,
321
+
tracePropagationTargets: ['localhost', /^\//]
328
322
}
329
323
```
330
324
- Sentry documentation strongly recommends reducing the `tracesSampleRate` value; it should be between 0.0 and 1.0 (percentage of requests to capture)
331
-
- The `vueOptions` are passed to the `Vue` integration, see https://docs.sentry.io/platforms/javascript/guides/vue/#monitor-performance for more information
332
-
- `browserOptions` are passed to the `BrowserTracing` integration, see https://github.com/getsentry/sentry-javascript/tree/master/packages/tracing for more information
0 commit comments