Skip to content

fix: Fix ups for the vite-plugin PR#443

Merged
BYK merged 2 commits intomainfrom
byk/fix/fix-up-vite-plugin
Jul 22, 2024
Merged

fix: Fix ups for the vite-plugin PR#443
BYK merged 2 commits intomainfrom
byk/fix/fix-up-vite-plugin

Conversation

@BYK
Copy link
Copy Markdown
Member

@BYK BYK commented Jul 22, 2024

Fixes up #434.

We sometimes load Spotlight befor a Sentry SDK is loaded which
then bails on running the integration with it, making it lose
most of its appeal. To fix this, this PR adds a retry mechanism
which tries detecting Sentry SDK up to 3 times.

This works on the first try if it's just an ordering problem. It
however would not work where a Sentry SDK is loaded on-demand as
we don't have an "on load event" for Sentry SDK.

Fixes up #434.

We sometimes load Spotlight befor a Sentry SDK is loaded which
then bails on running the integration with it, making it lose
most of its appeal. To fix this, this PR adds a retry mechanism
which tries detecting Sentry SDK up to 3 times.

This works on the first try if it's just an ordering problem. It
however would not work where a Sentry SDK is loaded on-demand as
we don't have an "on load event" for Sentry SDK.
@vercel
Copy link
Copy Markdown

vercel bot commented Jul 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
spotlightjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 9:17pm

@BYK BYK merged commit 54f8fbf into main Jul 22, 2024
@BYK BYK deleted the byk/fix/fix-up-vite-plugin branch July 22, 2024 21:51
dcramer pushed a commit that referenced this pull request Jun 3, 2025
Fixes up #434.

We sometimes load Spotlight befor a Sentry SDK is loaded which
then bails on running the integration with it, making it lose
most of its appeal. To fix this, this PR adds a retry mechanism
which tries detecting Sentry SDK up to 3 times.

This works on the first try if it's just an ordering problem. It
however would not work where a Sentry SDK is loaded on-demand as
we don't have an "on load event" for Sentry SDK.
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.

2 participants