Skip to content

Commit a5e1964

Browse files
docs(Capcitor): update capacitor index to align with Version 3 (#16287)
**Only merge on day 13.** <!-- Use this checklist to make sure your PR is ready for merge. You may delete any sections you don't need. --> ## DESCRIBE YOUR PR With the introduction of Capacitor V3, there will be new changes that users will need to do. This PR updates the correct fields that require user changes. ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [x] Other deadline: 13/02/26 - [ ] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## LEGAL BOILERPLATE <!-- Sentry employees and contractors can delete or ignore this section. --> Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
1 parent fa5b04d commit a5e1964

1 file changed

Lines changed: 21 additions & 20 deletions

File tree

  • docs/platforms/javascript/guides/capacitor

docs/platforms/javascript/guides/capacitor/index.mdx

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,10 @@ Sentry.init(
298298
dist: "<dist>",
299299
// ___PRODUCT_OPTION_START___ logs
300300
// Logs requires @sentry/capacitor 2.0.0 or newer.
301-
_experiments: {
302-
enableLogs: true,
303-
beforeSendLog: (log) => {
304-
// Add custom filters to logs.
305-
return log;
306-
}
301+
enableLogs: true,
302+
beforeSendLog: (log) => {
303+
// Add custom filters to logs.
304+
return log;
307305
},
308306
// ___PRODUCT_OPTION_END___ logs
309307
integrations: [
@@ -361,8 +359,16 @@ const app = createApp(App)
361359

362360
Sentry.init(
363361
{
364-
app,
365362
dsn: "___PUBLIC_DSN___",
363+
364+
// Vue specific settings.
365+
siblingOptions: {
366+
vueOptions: {
367+
app: app,
368+
attachErrorHandler: false,
369+
attachProps: true,
370+
},
371+
},
366372

367373
// Adds request headers and IP for users, for more info visit:
368374
// https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#sendDefaultPii
@@ -374,12 +380,10 @@ Sentry.init(
374380
dist: "<dist>",
375381
// ___PRODUCT_OPTION_START___ logs
376382
// Logs requires @sentry/capacitor 2.0.0 or newer.
377-
_experiments: {
378-
enableLogs: true,
379-
beforeSendLog: (log) => {
380-
// Add custom filters to logs.
381-
return log;
382-
}
383+
enableLogs: true,
384+
beforeSendLog: (log) => {
385+
// Add custom filters to logs.
386+
return log;
383387
},
384388
// ___PRODUCT_OPTION_END___ logs
385389
integrations: [
@@ -436,7 +440,6 @@ import * as SentryNuxt from "@sentry/nuxt";
436440
Sentry.init(
437441
{
438442
dsn: "___PUBLIC_DSN___",
439-
440443
// Adds request headers and IP for users, for more info visit:
441444
// https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#sendDefaultPii
442445
sendDefaultPii: true,
@@ -447,12 +450,10 @@ Sentry.init(
447450
dist: "<dist>",
448451
// ___PRODUCT_OPTION_START___ logs
449452
// Logs requires @sentry/capacitor 2.0.0 or newer.
450-
_experiments: {
451-
enableLogs: true,
452-
beforeSendLog: (log) => {
453-
// Add custom filters to logs.
454-
return log;
455-
}
453+
enableLogs: true,
454+
beforeSendLog: (log) => {
455+
// Add custom filters to logs.
456+
return log;
456457
},
457458
// ___PRODUCT_OPTION_END___ logs
458459
integrations: [

0 commit comments

Comments
 (0)