Skip to content

Conversation

@lucas-zimerman
Copy link
Collaborator

@lucas-zimerman lucas-zimerman commented Dec 6, 2025

DESCRIBE YOUR PR

This PR adds a migration guide to Capacitor V3.
It also adds a description to a new integration for spotlight.

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.):
  • Other deadline:
  • 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

LEGAL BOILERPLATE

EXTRA RESOURCES

@vercel
Copy link

vercel bot commented Dec 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
develop-docs Ready Ready Preview Comment Dec 8, 2025 11:15am
sentry-docs Ready Ready Preview Comment Dec 8, 2025 11:15am

@codecov
Copy link

codecov bot commented Dec 6, 2025

Bundle Report

Changes will increase total bundle size by 927 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 24.66MB 933 bytes (0.0%) ⬆️
sentry-docs-client-array-push 10.23MB -6 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 893.1kB -0.0%
static/chunks/9366-*.js -3 bytes 437.05kB -0.0%
server/middleware-*.js 6.46kB 7.46kB 645.5% ⚠️
server/middleware-*.js -6.46kB 1.0kB -86.59%
static/pGccQijsiw3_SeYWCR_uH/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/pGccQijsiw3_SeYWCR_uH/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/1iTcnBPr0Y8gZcbvI3Mv0/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/1iTcnBPr0Y8gZcbvI3Mv0/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 5.46MB -0.0%
6529.js -3 bytes 4.88MB -0.0%
../instrumentation.js -3 bytes 4.78MB -0.0%
../app/[[...path]]/page.js.nft.json 314 bytes 1.06MB 0.03%
../app/platform-redirect/page.js.nft.json 314 bytes 1.06MB 0.03%
../app/sitemap.xml/route.js.nft.json 314 bytes 1.05MB 0.03%

Comment on lines +18 to +28
```javascript diff
import * as Sentry from '@sentry/capacitor';

Sentry.init({
+ integrations: [
+ Sentry.spotlightIntegration({
+ sidecarUrl: 'IP:PORT/stream' //Only required when testing outside of a browser.
+ }),
]
}, siblingSdk);

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The Sentry.init example in spotlight.mdx uses an undefined siblingSdk variable, causing a ReferenceError.
Severity: CRITICAL | Confidence: High

🔍 Detailed Analysis

The code example in docs/platforms/javascript/guides/capacitor/configuration/integrations/spotlight.mdx (lines 18-28) uses an undefined variable siblingSdk as the second argument to Sentry.init. This variable is not declared or imported, leading to a ReferenceError: siblingSdk is not defined at runtime if developers copy the example. This will cause application initialization to fail, as the example needs to specify a framework-specific SDK and its corresponding import.

💡 Suggested Fix

Replace siblingSdk with a framework-specific Sentry SDK init function (e.g., SentryVue.init) and add the corresponding import statement (e.g., import * as SentryVue from '@sentry/vue';) to the code example.

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location:
docs/platforms/javascript/guides/capacitor/configuration/integrations/spotlight.mdx#L18-L28

Potential issue: The code example in
`docs/platforms/javascript/guides/capacitor/configuration/integrations/spotlight.mdx`
(lines 18-28) uses an undefined variable `siblingSdk` as the second argument to
`Sentry.init`. This variable is not declared or imported, leading to a `ReferenceError:
siblingSdk is not defined` at runtime if developers copy the example. This will cause
application initialization to fail, as the example needs to specify a framework-specific
SDK and its corresponding import.

Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 6119133

Copy link
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants