Skip to content
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

feat(core): Add getIsolationScope() method #9957

Merged
merged 2 commits into from
Dec 21, 2023
Merged

Conversation

mydea
Copy link
Member

@mydea mydea commented Dec 21, 2023

Also ensure to actually export getGlobalScope() everywhere as well.

The isolation scope, currently, lies on the hub, and is applied to all events.

Also ensure to actually export `getGlobalScope()` everywhere as well.

The isolation scope, currently, lies on the hub, and is applied to all events.
@mydea mydea self-assigned this Dec 21, 2023
Copy link
Contributor

github-actions bot commented Dec 21, 2023

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 75.67 KB (+0.11% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 67.07 KB (+0.09% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 60.67 KB (+0.13% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.65 KB (+0.13% 🔺)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 30.28 KB (+0.19% 🔺)
@sentry/browser - Webpack (gzipped) 21.96 KB (+0.21% 🔺)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 73.11 KB (+0.12% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 64.8 KB (+0.12% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 30.98 KB (+0.14% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped) 23.01 KB (+0.25% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 203.25 KB (+0.08% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 93.16 KB (+0.15% 🔺)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 68.21 KB (+0.2% 🔺)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 33.89 KB (+0.04% 🔺)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 67.46 KB (+0.09% 🔺)
@sentry/react - Webpack (gzipped) 21.99 KB (+0.21% 🔺)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 84.22 KB (+0.07% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 48.87 KB (+0.16% 🔺)
@sentry-internal/feedback - Webpack (gzipped) 16.6 KB (+0.25% 🔺)

Comment on lines +201 to +203
public getIsolationScope(): Scope {
return this._isolationScope;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be a getter?

Copy link
Member Author

Choose a reason for hiding this comment

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

we don't really have getters there right now, also this is really just a very short-lived thing anyhow and will be gone by v8 😅

@mydea mydea merged commit 213bb4a into develop Dec 21, 2023
96 checks passed
@mydea mydea deleted the fn/isolation-scope branch December 21, 2023 15:05
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