Skip to content

feat(core): Allow to pass scope to withIsolationScope() #11478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Apr 8, 2024

Also adds tests for this for core, vercel-edge and opentelemetry.

NOTE: In core, this does not do anything, as we cannot actually update the isolation scope in browser.

@mydea mydea requested review from lforst and s1gr1d April 8, 2024 12:52
@mydea mydea self-assigned this Apr 8, 2024
Copy link
Contributor

github-actions bot commented Apr 8, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) 75.65 KB (0%)
@sentry/browser (incl. Tracing, Replay) 66.87 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) 70.73 KB (0%)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 60.44 KB (0%)
@sentry/browser (incl. Tracing) 31.75 KB (0%)
@sentry/browser (incl. browserTracingIntegration) 31.75 KB (0%)
@sentry/browser (incl. feedbackIntegration) 30.88 KB (0%)
@sentry/browser (incl. feedbackModalIntegration) 30.9 KB (0%)
@sentry/browser (incl. feedbackScreenshotIntegration) 30.9 KB (0%)
@sentry/browser (incl. sendFeedback) 26.89 KB (0%)
@sentry/browser 22.1 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 71.66 KB (+0.04% 🔺)
CDN Bundle (incl. Tracing, Replay) 66.41 KB (+0.06% 🔺)
CDN Bundle (incl. Tracing) 32.73 KB (+0.1% 🔺)
CDN Bundle 24.16 KB (+0.13% 🔺)
CDN Bundle (incl. Tracing, Replay) - uncompressed 207.09 KB (+0.06% 🔺)
CDN Bundle (incl. Tracing) - uncompressed 97.7 KB (+0.11% 🔺)
CDN Bundle - uncompressed 71.47 KB (+0.15% 🔺)
@sentry/react (incl. Tracing, Replay) 66.99 KB (0%)
@sentry/react 22.12 KB (0%)

Also adds tests for this for core, vercel-edge and opentelemetry.

NOTE: In core, this does not do anything, as we cannot actually update the isolation scope in browser.

Co-authored-by: Luca Forstner <[email protected]>
@mydea mydea force-pushed the fn/isolation-scope branch from 9470c65 to d31850c Compare April 8, 2024 13:21
@mydea mydea merged commit f644fd6 into develop Apr 8, 2024
@mydea mydea deleted the fn/isolation-scope branch April 8, 2024 13:44
Copy link
Member

Choose a reason for hiding this comment

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

L: The tests of describe('withScope() ... are the same in those 3 files, right?
Would it make sense to export them from a single source and use the tests in those 3 files? I am just thinking that we could add/remove tests in e.g. opentelemetry in the future and then it might not be straight forward that it also should be tested in core and vercel-edge

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, we don't really export any tests etc. right now. IMHO it's OK to just have them duplicated, we can look into potentially streamlining this in the future!

cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
…11478)

Also adds tests for this for core, vercel-edge and opentelemetry.

NOTE: In core, this does not do anything, as we cannot actually update
the isolation scope in browser.

Co-authored-by: Luca Forstner <[email protected]>
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